Vendor bill sequence¶
When confirming a vendor bill, Odoo generates a unique vendor bill reference number. By default, it
uses the following sequence format BILL/year/month/incrementing-number
(e.g.,
BILL/2025/01/00001
), which restarts from 00001
each year.
However, it is possible to change the sequence format and its periodicity, and to mass-resequence vendor bills.
Nota
Changes made to reference numbers are logged in the chatter.
Changing the default sequence¶
To customize the default sequence, open the last confirmed vendor bill, click Reset to Draft, and edit the vendor bill’s reference number.

Odoo then explains how the detected format will be applied to all future vendor bills. For example, if the current vendor bill’s month is withdrawn, the sequence’s periodicity will change to every year instead of every month.

Dica
The sequence format can be edited directly when creating the first vendor bill of a given sequence period.
Mass-resequencing vendor bills¶
It can be helpful to resequence multiple vendor bill numbers. For example, when importing vendor bills from another accounting system and the reference originates from the previous software, continuity for the current year must be maintained without restarting from the beginning.
Nota
Esse recurso só está disponível para usuários com acesso de administrador ou consultor.
Follow these steps to resequence vendor bill numbers:
Ativar o modo modo de desenvolvedor.
In the vendor bills list view, select the vendor bills that need a new sequence.
Clique no menu Ações e selecione Ressequenciar.
No campo Ordenação, escolha
Manter a ordem atual: A ordem dos números permanece a mesma.
Reordenar por data contábil: O número é reordenado por data contábil.
Defina o Primeira nova sequência.
Pré-visualizar modificações e clique em Confirmar.
The first vendor bill using the new sequence appears in red in the Bills list view.
