OCA/account-financial-tools

[16.0] No gap sequences aren't filled in when account_move_name_sequence is installed

itgoshawk opened this issue · 0 comments

When an invoice is deleted, and a new one is created, the sequence number does not fill the gap created by the deleted record.
This, however, works fine when account_move_name_sequence is not installed.

Module

account_move_name_sequence

Describe the bug

Sequence no gap implementation is failing.

To Reproduce

Affected versions: 16.0 (so far)

Steps to reproduce the behavior:

  1. Invoice a sale order
  2. Confirm the invoice
  3. Reset to draft
  4. Delete the invoice
  5. Create another invoice
  6. Confirm it
  7. There is now a gap in a "no gap" implementation

Expected behavior
The expected behavior was for the gap that was created in the sequence to be filled in after creating a new invoice