Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
567 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
feb 24
1114
5
ene 24
6514
0
oct 23
1205
1
may 23
2483
1
nov 22
1843