FIX my previous commit: related_sudo -> compute_sudo

This commit is contained in:
Alexis de Lattre
2018-07-09 11:43:22 +02:00
committed by Raphaël Valyi
parent 8a34472576
commit d3c5d59bf0

View File

@@ -69,5 +69,5 @@ class ProductPriceHistory(models.Model):
_inherit = 'product.price.history'
company_currency_id = fields.Many2one(
related='company_id.currency_id', readonly=True, related_sudo=True,
related='company_id.currency_id', readonly=True, compute_sudo=True,
string='Company Currency')