From 237f9b754a28c53cf99af05609d6d491ca8b986b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 3 Feb 2025 14:49:45 +0100 Subject: [PATCH] Use proper default type for Eval in domain of Spanish tax reporting --- modules/account_es/reporting_tax.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/account_es/reporting_tax.py b/modules/account_es/reporting_tax.py index d8a08d5a76..87b0961e98 100644 --- a/modules/account_es/reporting_tax.py +++ b/modules/account_es/reporting_tax.py @@ -343,16 +343,16 @@ class PrintAEATStart(ModelView): required=True, domain=[ ('type', '=', 'standard'), - ('fiscalyear.company', '=', Eval('company')), - ('start_date', '<=', (Eval('end_period'), 'start_date')), + ('fiscalyear.company', '=', Eval('company', -1)), + ('start_date', '<=', (Eval('end_period', None), 'start_date')), ]) end_period = fields.Many2One( 'account.period', "End Period", required=True, domain=[ ('type', '=', 'standard'), - ('fiscalyear.company', '=', Eval('company')), - ('start_date', '>=', (Eval('start_period'), 'start_date')) + ('fiscalyear.company', '=', Eval('company', -1)), + ('start_date', '>=', (Eval('start_period', None), 'start_date')) ]) @classmethod @@ -650,14 +650,14 @@ class ECOperationListContext(ECSalesListContext): start_date = fields.Date("Start Date", domain=[ If(Eval('end_date'), - ('start_date', '<=', Eval('end_date')), + ('start_date', '<=', Eval('end_date', None)), (), ), ]) end_date = fields.Date("End Date", domain=[ If(Eval('start_date'), - ('end_date', '>=', Eval('start_date')), + ('end_date', '>=', Eval('start_date', None)), (), ), ])