OCA / account-financial-tools

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

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

Open itgoshawk opened 6 months ago

itgoshawk commented 6 months ago

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