|
| 1 | +==================== |
| 2 | +Vendor bill sequence |
| 3 | +==================== |
| 4 | + |
| 5 | +When confirming a vendor bill, Odoo generates a unique vendor bill reference number. By default, it |
| 6 | +uses the following sequence format `BILL/year/month/incrementing-number` (e.g., |
| 7 | +`BILL/2025/01/00001`), which restarts from `00001` each year. |
| 8 | + |
| 9 | +However, it is possible to :ref:`change the sequence format <accounting/vendor_bills/resequencing>` |
| 10 | +and its periodicity, and to :ref:`mass-resequence vendor bills |
| 11 | +<accounting/vendor_bills/mass-resequencing>`. |
| 12 | + |
| 13 | +.. note:: |
| 14 | + Changes made to reference numbers are logged in the chatter. |
| 15 | + |
| 16 | +.. _accounting/vendor_bills/resequencing: |
| 17 | + |
| 18 | +Changing the default sequence |
| 19 | +============================= |
| 20 | + |
| 21 | +To customize the default sequence, open the last confirmed vendor bill, click :guilabel:`Reset to |
| 22 | +Draft`, and edit the vendor bill's reference number. |
| 23 | + |
| 24 | +.. image:: sequence/sequence-reference-number.png |
| 25 | + :alt: Editing the reference number of a vendor bill. |
| 26 | + |
| 27 | +Odoo then explains how the detected format will be applied to all future vendor bills. For example, |
| 28 | +if the current vendor bill's month is withdrawn, the sequence's periodicity will change to every |
| 29 | +year instead of every month. |
| 30 | + |
| 31 | +.. image:: sequence/sequence-dialog.png |
| 32 | + :alt: Editing the reference number of a vendor bill. |
| 33 | + |
| 34 | +.. tip:: |
| 35 | + The sequence format can be edited directly when creating the first vendor bill of a given |
| 36 | + sequence period. |
| 37 | + |
| 38 | +.. _accounting/vendor_bills/mass-resequencing: |
| 39 | + |
| 40 | +Mass-resequencing vendor bills |
| 41 | +============================== |
| 42 | + |
| 43 | +It can be helpful to resequence multiple vendor bill numbers. For example, when importing vendor |
| 44 | +bills from another accounting system and the reference originates from the previous software, |
| 45 | +continuity for the current year must be maintained without restarting from the beginning. |
| 46 | + |
| 47 | +.. note:: |
| 48 | + This feature is only available to users with administrator or advisor access. |
| 49 | + |
| 50 | +Follow these steps to resequence vendor bill numbers: |
| 51 | + |
| 52 | +#. Activate the :ref:`developer mode <developer-mode>`. |
| 53 | +#. In the vendor bills list view, select the vendor bills that need a new sequence. |
| 54 | +#. Click the :icon:`fa-cog` :guilabel:`Actions` menu and select :guilabel:`Resequence`. |
| 55 | +#. In the :guilabel:`Ordering` field, choose to |
| 56 | + |
| 57 | + - :guilabel:`Keep current order`: The order of the numbers remains the same. |
| 58 | + - :guilabel:`Reorder by accounting date`: The number is reordered by accounting date. |
| 59 | + |
| 60 | +#. Set the :guilabel:`First New Sequence`. |
| 61 | +#. :guilabel:`Preview Modifications` and click :guilabel:`Confirm`. |
| 62 | + |
| 63 | +The first vendor bill using the new sequence appears in red in the :guilabel:`Bills` list view. |
| 64 | + |
| 65 | +.. image:: sequence/sequence-bill-sequencing.png |
| 66 | + :alt: Resequence options window |
0 commit comments