diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py index 17e188352e1..1251045db9e 100644 --- a/addons/repair/models/repair.py +++ b/addons/repair/models/repair.py @@ -418,7 +418,7 @@ class Repair(models.Model): else: name = operation.name - account = operation.product_id.product_tmpl_id._get_product_accounts()['income'] + account = operation.product_id.product_tmpl_id.get_product_accounts(fiscal_pos=fpos)['income'] if not account: raise UserError(_('No account defined for product "%s".', operation.product_id.name)) @@ -460,7 +460,7 @@ class Repair(models.Model): if not fee.product_id: raise UserError(_('No product defined on fees.')) - account = fee.product_id.product_tmpl_id._get_product_accounts()['income'] + account = fee.product_id.product_tmpl_id.get_product_accounts(fiscal_pos=fpos)['income'] if not account: raise UserError(_('No account defined for product "%s".', fee.product_id.name))