Skip to Content
Menu
This question has been flagged
2 Replies
657 Zobrazenia

Hi community,

So I'm facing an issue where my invoice sequence numbers just skipped for no apparent reason from INV 697 to INV 708( a total of 10 numbers). My initial thoughts were that some invoices were deleted, but we have a check to prevent this. We created a customization to prevent deleting invoices including cancelled ones. What could be the matter? Does Odoo randomly skip sequence numbers? Is this a bug in version 12?

Avatar
Zrušiť
Best Answer

Hi,


This is a common situation in Odoo 12 and typically not a bug. Here's what might be happening:


    Odoo reserves the next invoice number as soon as an invoice is created, even in draft. If the invoice is later canceled or never validated, the number still counts as used.


    Sequence numbers are not rolled back. Once assigned, they are never reused—even if the invoice is discarded or fails due to validation errors.


    Custom code or external systems (like API integrations) may trigger invoice creation in the background, unintentionally consuming sequence numbers.


    Multiple users working at the same time can also lead to skipped numbers, especially if someone starts an invoice and abandons it.


    Even without deletion (which you've blocked), canceled or draft invoices may be responsible for the missing numbers.


    From an accounting perspective, gaps in invoice sequences are acceptable as long as the numbering remains unique and chronological.


Hope it helps.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
feb 24
1189
5
jan 24
6604
0
okt 23
1297
1
máj 23
2533
1
nov 22
1911