From cd8fb8b03d621ec413fccc81cbe3d466f718364c Mon Sep 17 00:00:00 2001 From: Abdurrahman Saber Date: Wed, 15 Oct 2025 03:53:25 +0300 Subject: [PATCH] [FIX] exp_l10n_sa_edi: use context_today instead of today --- odex25_accounting/exp_l10n_sa_edi/models/account_edi_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_accounting/exp_l10n_sa_edi/models/account_edi_format.py b/odex25_accounting/exp_l10n_sa_edi/models/account_edi_format.py index 7e010acbb..dffba5272 100644 --- a/odex25_accounting/exp_l10n_sa_edi/models/account_edi_format.py +++ b/odex25_accounting/exp_l10n_sa_edi/models/account_edi_format.py @@ -406,7 +406,7 @@ class AccountEdiFormat(models.Model): errors.append(_set_missing_partner_fields(supplier_missing_info, _("Supplier"))) if customer_missing_info: errors.append(_set_missing_partner_fields(customer_missing_info, _("Customer"))) - if invoice.invoice_date > date.today(): + if invoice.invoice_date > fields.Date.context_today(invoice): errors.append(_("- Please, make sure the invoice date is set to either the same as or before Today.")) if invoice.move_type in ('in_refund', 'out_refund') and not invoice._l10n_sa_check_refund_reason(): errors.append(