odoo/odoo#155895

Created by kerbrose
Merged at 63c0f87349b4264f4f89284a7f9510745acb3801

Statuses:

label
kerbrose:16.0
head
c4516208f7dc5a0b1263d610362eb8d4d9510227
merged
2 years ago by Accounting, Florian Gilbert (flg)
odoo/odoo
16.0 #155895
saas-16.1 #156253
saas-16.2 #156266
saas-16.3 #156282
saas-16.4 #156304
17.0 #156322
saas-17.1 #156342
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
saas-19.1
master #156354

[FIX] l10n_sa_edi: comparing invoice date to be aware with timezone

Steps to reproduce

  • install l10n_sa_edi
  • switch to a Saudi company
  • make sure user timezone is Asia/Riyadh
  • create and post an invoice between these time from 12:00 to 3:00

Cause

EDI Invoice could be validated

closes #155363

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


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