[FIX] account: fix a domain in the carryover lines model

The domain for the fiscal position in the carryover lines was incorrect,
missing the required quotes.

closes odoo/odoo#69921

X-original-commit: 85c07f0f93d664bf7f6028a1dfa0f663e2999c3d
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
Nicolas (vin)
2021-04-27 12:26:13 +00:00
parent 7ea3a73c18
commit b9a17c2135
@@ -17,9 +17,9 @@ class AccountTaxCarryoverLine(models.Model):
foreign_vat_fiscal_position_id = fields.Many2one(comodel_name='account.fiscal.position',
string='Fiscal position',
help="The foreign fiscal position for which this carryover is made.",
domain=[('company_id', '=', company_id),
('country_id', '=', tax_report_country_id),
('foreign_vat', '!=', False)])
domain="[('company_id', '=', company_id), "
"('country_id', '=', tax_report_country_id), "
"('foreign_vat', '!=', False)]")
@api.constrains('foreign_vat_fiscal_position_id')
def _check_fiscal_position(self):