Skip to content

Commit c805129

Browse files
committed
[ADD] accounting: invoice sequence page from 18.0 in 17.0
task-4564980 closes #12415 Signed-off-by: Audrey Vandromme (auva) <auva@odoo.com>
1 parent 90b1cc2 commit c805129

File tree

5 files changed

+69
-77
lines changed

5 files changed

+69
-77
lines changed

content/applications/finance/accounting/customer_invoices.rst

Lines changed: 3 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ Invoice confirmation
7575

7676
Click :guilabel:`Confirm` when the document is completed. The document's status changes to
7777
:guilabel:`Posted`, and a journal entry is generated based on the invoice configuration. On
78-
confirmation, Odoo assigns each document a unique number from a defined
79-
:ref:`sequence <accounting/invoice/sequence>`.
78+
confirmation, Odoo assigns each invoice a unique number from a defined
79+
:doc:`sequence <customer_invoices/sequence>`.
8080

8181
.. note::
8282
- Once confirmed, an invoice can no longer be updated. Click :guilabel:`Reset to draft` if
@@ -123,81 +123,6 @@ how much the customer is overdue. These actions are bundled into follow-up level
123123
an invoice is overdue by a certain number of days. If there are multiple overdue invoices for the
124124
same customer, the actions are performed on the most overdue invoice.
125125

126-
.. _accounting/invoice/sequence:
127-
128-
Sequence
129-
========
130-
131-
The sequence that Odoo assigns to each document is a unique number made up of a prefix and a number.
132-
The prefix combines the journal code and the entry date and is used to group entries by period. The
133-
number is unique for each period and is used to identify the entry. The default sequence on customer
134-
invoices is INV/YYYY/number. In some specific cases,
135-
:ref:`resequencing <accounting/invoice/resequencing>` invoices might be necessary.
136-
137-
.. _accounting/invoice/resequencing:
138-
139-
Resequencing
140-
------------
141-
142-
Resequencing is not possible:
143-
144-
- When entries are before a lock date.
145-
- When the sequence leads to a duplicate.
146-
- When the :guilabel:`Invoice Date` doesn't match the date contained in the new sequence number,
147-
e.g., if the sequence is changed to INV/2023/XXXXX for a document with an :guilabel:`Invoice Date`
148-
of 2024.
149-
150-
To change the invoice sequence with the structure INV/YYYY/MM/number, add `/MM` with the number of
151-
the month of the :guilabel:`Invoice date`. Odoo will recognize the "/" term as a month and update
152-
the future invoice sequence appropriately with the month of the :guilabel:`Invoice date`. For
153-
example, if the invoice date is January, change the sequence to `INV/2024/01/XXXXX`.
154-
155-
In this case, if the :guilabel:`Invoice date` isn't aligned with the sequence number, a
156-
:guilabel:`Validation Error` message appears.
157-
158-
.. note::
159-
160-
- All sequence changes are logged in the chatter to keep the information.
161-
- Sequence changes also affect the format of future invoices' sequences.
162-
163-
.. _accounting/invoice/resequencing-one-invoice:
164-
165-
Resequencing a single invoice
166-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167-
168-
To resequence the last confirmed invoice, click :guilabel:`Reset to Draft`, then change the
169-
sequence. The invoice now appears in red on the :guilabel:`Customer Invoices` list.
170-
171-
.. _accounting/invoice/mass-resequencing:
172-
173-
Mass-resequencing invoices
174-
~~~~~~~~~~~~~~~~~~~~~~~~~~
175-
176-
It can be helpful to resequence multiple invoice numbers. For example, when importing invoices from
177-
another invoicing or accounting system and the reference originates from the previous software,
178-
continuity for the current year must be maintained without restarting from the beginning.
179-
180-
.. note::
181-
This feature is only available to users with administrator or advisor access.
182-
183-
Follow these steps to resequence invoice numbers:
184-
185-
#. Activate the :ref:`developer mode <developer-mode>`.
186-
#. From the :guilabel:`Accounting Dashboard`, open the :guilabel:`Customer Invoices` journal.
187-
#. Select the invoices that need a new sequence.
188-
#. Click the :icon:`fa-cog` :guilabel:`Actions` menu and select :guilabel:`Resequence`.
189-
#. In the :guilabel:`Ordering` field, choose to
190-
191-
- :guilabel:`Keep current order`: The order of the numbers remains the same.
192-
- :guilabel:`Reorder by accounting date`: The number is reordered by accounting date.
193-
#. Set the :guilabel:`First New Sequence`.
194-
#. :guilabel:`Preview Modifications` and click :guilabel:`Confirm`.
195-
196-
The first invoice using the new sequence appears in red in the :guilabel:`Customer Invoices` list.
197-
198-
.. image:: customer_invoices/invoice-sequencing.png
199-
:alt: Resequence options window
200-
201126
.. _accounting/invoice/reporting:
202127

203128
Reporting
@@ -262,6 +187,7 @@ liabilities, and equity at a specific time.
262187
customer_invoices/cash_rounding
263188
customer_invoices/deferred_revenues
264189
customer_invoices/electronic_invoicing
190+
customer_invoices/sequence
265191
customer_invoices/snailmail
266192
customer_invoices/epc_qr_code
267193
customer_invoices/incoterms
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
================
2+
Invoice sequence
3+
================
4+
5+
When confirming an invoice, Odoo generates a unique invoice reference number. By default, Odoo uses
6+
the following sequence format `INV/year/incrementing-number` (e.g., `INV/2025/00001`), which
7+
restarts from `00001` each year.
8+
9+
However, it is possible to :ref:`change the sequence format <accounting/invoice/resequencing>` and
10+
its periodicity, and to :ref:`mass-resequence invoices <accounting/invoice/mass-resequencing>`.
11+
12+
.. note::
13+
Changes made to reference numbers are logged in the chatter.
14+
15+
.. _accounting/invoice/resequencing:
16+
17+
Changing the default sequence
18+
=============================
19+
20+
To customize the default sequence, open the last confirmed invoice, click :guilabel:`Reset to
21+
Draft`, and edit the invoice's reference number.
22+
23+
.. image:: sequence/reference-number.png
24+
:alt: Editing the reference number of an invoice.
25+
26+
Odoo then explains how the detected format will be applied to all future invoices. For example, if
27+
the current invoice's month is added, the sequence's periodicity will change to every month instead
28+
of every year.
29+
30+
.. image:: sequence/sequence-dialog.png
31+
:alt: Editing the reference number of an invoice.
32+
33+
.. tip::
34+
The sequence format can be edited directly when creating the first invoice of a given sequence
35+
period.
36+
37+
.. _accounting/invoice/mass-resequencing:
38+
39+
Mass-resequencing invoices
40+
==========================
41+
42+
It can be helpful to resequence multiple invoice numbers. For example, when importing invoices from
43+
another invoicing or accounting system and the reference originates from the previous software,
44+
continuity for the current year must be maintained without restarting from the beginning.
45+
46+
.. note::
47+
This feature is only available to users with administrator or advisor access.
48+
49+
Follow these steps to resequence invoice numbers:
50+
51+
#. Activate the :ref:`developer mode <developer-mode>`.
52+
#. From the :guilabel:`Accounting Dashboard`, open the :guilabel:`Customer Invoices` journal.
53+
#. Select the invoices 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 invoice using the new sequence appears in red in the :guilabel:`Customer Invoices` list.
64+
65+
.. image:: sequence/invoice-sequencing.png
66+
:alt: Resequence options window
Loading
Loading
Loading

0 commit comments

Comments
 (0)