Invoice sequence

When confirming an invoice, Odoo generates a unique invoice reference number. By default, it uses the sequence format INV/year/incrementing-number (e.g., INV/2025/00001), which restarts from 00001 each year.

However, it is possible to change the sequence format and its periodicity, and to mass-resequence invoices.

Nota

Changes made to reference numbers are logged in the chatter.

Changing the default sequence

To customize the default sequence, open the last confirmed invoice, click Reset to Draft, and edit the invoice’s reference number.

Editing the reference number of an invoice.

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

Editing the reference number of an invoice.

Dica

The sequence format can be edited directly when creating the first invoice of a given sequence period.

Ressequenciamento em massa de faturas

Pode ser útil ressequenciar vários números de faturas. Por exemplo, se for importar faturas de outro sistema de faturamento ou contabilidade e a referência se originar do software anterior, a continuidade do ano atual deve ser mantida, sem recomeçar do início.

Nota

Esse recurso só está disponível para usuários com acesso de administrador ou consultor.

Siga estas etapas para ressequenciar os números de fatura:

  1. Ativar o modo modo de desenvolvedor.

  2. No Painel do Financeiro, abra o diário Faturas de clientes.

  3. Selecione as faturas que precisam de uma nova sequência.

  4. Clique no menu Ações e selecione Ressequenciar.

  5. 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.

  6. Defina o Primeira nova sequência.

  7. Pré-visualizar modificações e clique em Confirmar.

Janela de opções de ressequência

Nota

  • To indicate where the sequence change began, the first invoice in the new sequence is highlighted in red in the Customer Invoices list. This visual marker is permanent and purely informational.

  • If there are any irregularities in the new sequence, such as gaps, cancelled, or deleted entries within the open period, a Gaps in the sequence message appears in the Customer Invoices journal on the Accounting dashboard. To view more details about the related invoice(s), click Gaps in the sequence. This visual marker is temporary and will disappear once the entry’s accounting date is on or after the lock date.

Dica

Resequencing is not possible:

  • When entries are before a lock date.

  • When the sequence leads to a duplicate.

  • When the range is invalid. For example, if the Invoice Date doesn’t align with the date in the new sequence, such as using a 2024 sequence (INV/2024/XXXXX) for an invoice dated in 2025.

In these cases, a Validation Error message appears.