[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user