Add related_sudo where it may be needed
PEP8 fix
This commit is contained in:
committed by
Raphaël Valyi
parent
f2f3a11e1e
commit
8a34472576
@@ -69,5 +69,5 @@ class ProductPriceHistory(models.Model):
|
|||||||
_inherit = 'product.price.history'
|
_inherit = 'product.price.history'
|
||||||
|
|
||||||
company_currency_id = fields.Many2one(
|
company_currency_id = fields.Many2one(
|
||||||
related='company_id.currency_id', readonly=True,
|
related='company_id.currency_id', readonly=True, related_sudo=True,
|
||||||
string='Company Currency')
|
string='Company Currency')
|
||||||
|
|||||||
Reference in New Issue
Block a user