OCA/account-financial-tools

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

Opened this issue · 1 comments

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.

I couldn't reproduce the same problem as you 🤔