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.
注解
对参考编号的更改会记录在沟通栏。
更改默认序列¶
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.

小技巧
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.
注解
只有拥有管理员或顾问权限的用户才能使用该功能。
Follow these steps to resequence vendor bill numbers:
启用:ref:
开发者模式<developer-mode>
.In the vendor bills list view, select the vendor bills that need a new sequence.
点击 操作 菜单并选择 重新排序。
在 订购 字段中,选择
保持当前顺序:数字顺序保持不变。
按会计日期重新排序: 数字按会计日期重新排序。
设置 第一个新序列。
预览修改 并点击:guilabel:
确认
。
The first vendor bill using the new sequence appears in red in the Bills list view.
