From 8a3447257672d285d971f51a2a6e4925db62f22d Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 9 Jul 2018 10:41:53 +0200 Subject: [PATCH] Add related_sudo where it may be needed PEP8 fix --- product_usability/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_usability/product.py b/product_usability/product.py index 9ad246a..9d1cca0 100644 --- a/product_usability/product.py +++ b/product_usability/product.py @@ -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='company_id.currency_id', readonly=True, related_sudo=True, string='Company Currency')