发票顺序¶
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.
注解
对参考编号的更改会记录在沟通栏。
更改默认序列¶
要自定义默认顺序,请打开最后确认的发票,点击 重置为草稿 并编辑发票的参考编号。

然后,Odoo 会解释检测到的格式将如何应用于所有未来的发票。例如,如果添加了当前发票的月份,序列的周期将从每年改为每月。

小技巧
在创建特定序列期的第一张发票时,可直接编辑序列格式。
批量重新排序发票¶
对多个发票号码重新排序可能会有帮助。例如,从另一个开票或会计系统导入发票时,如果参考源于以前的软件,则必须保持当年的连续性,而无需从头开始。
注解
只有拥有管理员或顾问权限的用户才能使用该功能。
请按照以下步骤重新排列发票编号:
启用:ref:
开发者模式<developer-mode>
.从 会计仪表板 打开 客户发票 日记账。
选择需要新序列的发票。
点击 操作 菜单并选择 重新排序。
在 订购 字段中,选择
保持当前顺序:数字顺序保持不变。
按会计日期重新排序: 数字按会计日期重新排序。
设置 第一个新序列。
预览修改 并点击:guilabel:
确认
。

注解
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.
小技巧
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.