Account Move Number Sequence
In Odoo version 13.0 and previous versions, the number of journal entries was generated from a sequence configured on the journal.
In Odoo version 14.0, the number of journal entries can be manually set by the user. Then, the number attributed for the next journal entries in the same journal is computed by a complex piece of code that guesses the format of the journal entry number from the number of the journal entry which was manually entered by the user. It has several drawbacks:
- the available options for the sequence are limited,
- it is not possible to configure the sequence in advance before the deployment in production,
- as it is error-prone, they added a Resequence wizard to re-generate the journal entry numbers, which can be considered as illegal in many countries,
- the piece of code that handles this is not easy to understand and quite difficult to debug.
Using this module, you can configure what kind of documents the gap sequence may be relaxed And even if you must use no-gap in your company or country it will reduce the concurrency issues since the module is using an extra table (ir_sequence) instead of locking the last record
For those like me who think that the implementation before Odoo v14.0 was much better, for the accountants who think it should not be possible to manually enter the sequence of a customer invoice, for the auditor who considers that resequencing journal entries is prohibited by law, this module may be a solution to get out of the nightmare.
The field names used in this module to configure the sequence on the journal are exactly the same as in Odoo version 13.0 and previous versions. That way, if you migrate to Odoo version 14.0 and you install this module immediately after the migration, you should keep the previous behavior and the same sequences will continue to be used.
The module removes access to the Resequence wizard on journal entries.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Journal entry numbers are now generated from a real, configurable sequence attached to each accounting journal, instead of being guessed from the last number typed by a user. Users can set the entry sequence and the credit note sequence directly on the journal.
This module changes how Odoo numbers journal entries. Instead of guessing the next number from the last entry a user typed, each accounting journal now carries its own numbering sequence.
On the journal configuration screen you get two new fields: "Entry Sequence" and "Credit Note Entry Sequence". The credit note sequence only appears for sale and purchase journals when the refund sequence option is enabled. When a journal is created, a sequence is generated automatically with a prefix based on the journal code and the year, four-digit padding and no gaps; a separate refund sequence starting with "R" is created for sale and purchase journals.
When an entry is posted, its number is taken from the journal's sequence, using the credit note sequence for refunds on sale and purchase journals. The number field on the entry form becomes read-only and is hidden while the entry is still a draft without a number. Odoo refuses to post an entry that has no number.
Some safeguards are added: the same sequence cannot be used both as entry sequence and credit note sequence, and a sequence without a company is rejected. The standard resequence wizard is disabled for accounting managers. On installation, existing journals without a sequence get one, built from their current entries so numbering continues where it left off.
Depends on
Models and fields (3)
- ir.sequence · extends an existing model
- account.move · extends an existing modelname, highest_name, made_sequence_gap
- account.journal · extends an existing modelsequence_id (Entry Sequence), refund_sequence, has_sequence_holes, refund_sequence_id (Credit Note Entry Sequence)
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 6 confirmed, 3 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/account-financial-tools.
terminal Installation and usage
OCA documentation · Odoo 19.0Configuration
Source · Odoo 19.0On the form view of an account journal, in the first tab, there is a many2one link to the sequence. When you create a new journal, you can keep this field empty and a new sequence will be automatically created when you save the journal.
On sale and purchase journals, you have an additional option to have another sequence dedicated to refunds.
Upon module installation, all existing journals will be updated with a journal entry sequence (and also a credit note sequence for sale and purchase journals). You should update the configuration of the sequences to fit your needs. You can uncheck the option Dedicated Credit Note Sequence on existing sale and purchase journals if you don't want it. For the journals which already have journal entries, you should update the sequence configuration to avoid a discontinuity in the numbering for the next journal entry.
No verified information in OCA: Installation, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.