OCA / account-financial-tools

Odoo Accountant Financial Tools and Utils
GNU Affero General Public License v3.0
300 stars 741 forks source link

Issue with chronology check between journals in Account Invoice Constraint Chronology Module #1821

Open Doberick opened 4 months ago

Doberick commented 4 months ago

Odoo Version: 16.0

Module: Account Invoice Constraint Chronology

Problem Description: I am currently using the Account Invoice Constraint Chronology module in Odoo, which allows marking each accounting journal to check chronology when creating invoices in that specific journal. However, there seems to be an issue with the logic of chronology check between journals.

Steps to Reproduce the Issue:

  1. Install the Account Invoice Constraint Chronology module.
  2. Configure two different journals, for example, Journal A and Journal B.
  3. Create an invoice in Journal A with a specific date.
  4. Attempt to create an invoice in Journal B with a date earlier than the invoice in Journal A.

Current Behavior: In step 4, it is expected that the creation of the invoice should not be blocked due to the chronology check, but instead, the error occurs even between different journals.

Expected Behavior: The chronology check should apply only between invoices of the same journal. There should be no blocking when creating an invoice in a different journal, regardless of the chronology in other journals.

zuher83 commented 1 month ago

I couldn't reproduce the same problem as you 🤔