odoo/odoo#156266

Created by fw-bot
Closed
label
odoo-dev:saas-16.2-16.0-l-OJ-fw
head
a195b0dca69df12eeb7ae858c5e44ee3c25adcdd
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

[FW][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

Forward-Port-Of: #155895