Add related_sudo where it may be needed

PEP8 fix
This commit is contained in:
Alexis de Lattre
2018-07-09 10:41:53 +02:00
parent 6ef322be4c
commit f34a731d95
8 changed files with 15 additions and 15 deletions

View File

@@ -10,6 +10,6 @@ class PurchaseConfigSettings(models.TransientModel):
_inherit = 'purchase.config.settings'
lunch_voucher_natixis_customer_code = fields.Char(
related='company_id.lunch_voucher_natixis_customer_code')
related='company_id.lunch_voucher_natixis_customer_code', related_sudo=True)
lunch_voucher_natixis_delivery_code = fields.Char(
related='company_id.lunch_voucher_natixis_delivery_code')
related='company_id.lunch_voucher_natixis_delivery_code', related_sudo=True)