FIX my previous commit: related_sudo -> compute_sudo

This commit is contained in:
Alexis de Lattre
2018-07-09 11:43:22 +02:00
parent f34a731d95
commit 9ebf7cdb4c
8 changed files with 14 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ class PurchaseConfigSettings(models.TransientModel):
_inherit = 'purchase.config.settings'
lunch_voucher_product_id = fields.Many2one(
related='company_id.lunch_voucher_product_id', related_sudo=True)
related='company_id.lunch_voucher_product_id', compute_sudo=True)
lunch_voucher_employer_price = fields.Monetary(
related='company_id.lunch_voucher_employer_price',
currency_field='company_currency_id', related_sudo=True)
currency_field='company_currency_id', compute_sudo=True)