odoo/odoo#237191

Created by fw-bot
Merged at ff55d48487a59be83895c350dcb1d4ef18274b0a

Statuses:

label
odoo-dev:saas-18.4-17.0-l10n_sa_edi-flexible-issue-date-khom-479238-fw
head
292e2046120031823d1524c0737c3b801eaa6388
merged
9 months ago by Omar Khalid (khom)
odoo/odoo
17.0 #229517
18.0 #236865
saas-18.2 #236966
saas-18.3 #236979
saas-18.4 #237191
19.0 #237301
saas-19.1
saas-19.2
saas-19.3
saas-19.4
master #237448

[IMP] l10n_sa_{edi}: allow backdating invoices

Previously, l10n_sa_confirmation_datetime represented the time where the invoice was posted,
that meant that we could not backdate invoices, since it would cause disparity between
what zatca receives and what we consider in odoo (i.e. invoice_date)

This commit allows us to set the date component of l10n_sa_confirmation_datetime to the
invoice_date so we can safely backdate invoices.

task-5009969


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #236979
Forward-Port-Of: #229517