[FIX] exp_l10n_sa_edi: use context_today instead of today
This commit is contained in:
parent
459d38b8d8
commit
cd8fb8b03d
|
|
@ -406,7 +406,7 @@ class AccountEdiFormat(models.Model):
|
||||||
errors.append(_set_missing_partner_fields(supplier_missing_info, _("Supplier")))
|
errors.append(_set_missing_partner_fields(supplier_missing_info, _("Supplier")))
|
||||||
if customer_missing_info:
|
if customer_missing_info:
|
||||||
errors.append(_set_missing_partner_fields(customer_missing_info, _("Customer")))
|
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."))
|
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():
|
if invoice.move_type in ('in_refund', 'out_refund') and not invoice._l10n_sa_check_refund_reason():
|
||||||
errors.append(
|
errors.append(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue