供应商账单顺序

When confirming a vendor bill, Odoo generates a unique vendor bill reference number. By default, it uses the sequence format BILL/year/month/incrementing-number (e.g., BILL/2025/01/00001), which restarts from 00001 each year.

但是,可以 更改 序列格式及其周期,以及 对供应商账单进行 排序。

注解

对参考编号的更改会记录在沟通栏。

更改默认序列

要自定义默认顺序,请打开最后确认的供应商账单,点击 重置为草稿 并编辑供应商账单的参考编号。

编辑供应商账单的参考编号。

然后,Odoo 会解释检测到的格式将如何应用于所有未来的供应商账单。例如,如果当前供应商账单的月份被撤销,序列的周期将变为每年而不是每月。

编辑供应商账单的参考编号。

小技巧

在创建特定序列期的第一张供应商账单时,可直接编辑序列格式。

对供应商账单进行大规模排序

对多个供应商账单编号重新排序可能会有帮助。例如,从另一个会计系统导入供应商账单时,如果参考源于以前的软件,则必须保持本年度的连续性,而无需从头开始。

注解

只有拥有管理员或顾问权限的用户才能使用该功能。

按照以下步骤重新排列供应商账单号:

  1. 启用:ref:开发者模式<developer-mode>.

  2. 在供应商账单列表视图中,选择需要重新编号的账单

  3. 点击 操作 菜单并选择 重新排序

  4. 订购 字段中,选择

    • 保持当前顺序:数字顺序保持不变。

    • 按会计日期重新排序: 数字按会计日期重新排序。

  5. 设置 第一个新序列

  6. 预览修改 并点击:guilabel:确认

重新排序选项窗口

注解

  • To indicate where the sequence change began, the first vendor bill in the new sequence is highlighted in red in the Vendor Bills 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 Vendor Bills journal on the Accounting dashboard. To view more details about the related vendor bill(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 Bill Date doesn’t align with the date in the new sequence, such as using a 2024 sequence (BILL/2024/MM/XXXX) for an vendor bill dated in 2025.

In these cases, a Validation Error message appears.