IrSequence Standard by Default
Set the implementation to "Standard" in all your current Sequences (ir.sequence) and all new sequences are created as "Standard" by default instead of "No Gap" implementation.
What's the problem with "No Gap" Sequence Implementations
"No Gap" is the default value of sequences in Odoo. However, this kind of sequences cause more locks and can turn a database slow.
Taking as example an invoice, if you assign an invoice number to one record, but it sill not finish the process, this process must end in order to another invoice could assign a new number and there was no gaps between the invoice numbers. It seems to be good at first sight. But the problem starts when there is a chained process.
Imagine that there is one user that executes a process that produces 100 invoices and these at the same time produces 100 journal entries that also use a consecutive (no gap) sequence. And also those invoices are sent to sign with and external institution (that could take 2 seconds in giving a response because of internet latency or server load), and maybe they made another calculations that makes them to take 5 seconds more for each invoice, and all this is chained to one single transaction. This means that for 8.5 minutes anybody else could confirm invoices, neither journal entries of the involved journals.
Now, think there is 20 users that have to execute a similar process. The problem turns exponential. If another user comes to make an operation with the same jornal it will thrown a concurrency failure.
You can mitigate it if you segment each transaction and don't chain them. It means, making commit for each invoice or process. It reduces the probability that there is a concurrency error or a lock wait. However, it still not solve it completely.
Why to use Sequences with "Standard" Implementation
If you use the standard sequence of PosgreSQL, it doesn't lock because at the moment the request is done, the next sequence number it is changed in an isolated transaction, and it have not to wait the other transaction to end. However, if the transaction produces a rollback, this sequence isn't reverted, it means, it's lost. It may be not not serious because when you cancel or remove records that number is lost too.
What this module does
To eliminate completely that concurrency/slowness problem, this module changes all the sequences (ir.sequence) implementation from "No Gap" to "Standard" with the awareness that it will skip numbers. In the majority of database models and many users projects there is no problem with that jump occurs.
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Lets you switch all your existing document numbering sequences from the 'No Gap' method to the faster 'Standard' method, and warns that numbers may then have gaps.
Odoo numbers documents (invoices, orders, etc.) using sequences. By default these use a 'No Gap' method that can slow the database down. This module adds a way to convert them.
Where it appears: - In Settings, under the integration section, a 'Sequences' block with a 'Force Standard' option and a button 'Change all sequences to Standard implementation'. This block is only visible to users with technical/developer access. - Clicking the button opens a small pop-up wizard titled 'Set All Sequences to Standard'.
The wizard shows a warning: all sequences will be changed to the Standard implementation, which improves performance but sequence numbers may have gaps. You then press 'Execute' to confirm or 'Cancel' to stop.
What it does when executed: - It finds every sequence currently using the 'No Gap' implementation (including archived ones) and changes it to 'Standard'. - For sequences that use date ranges, it keeps the current next number of each range before switching, so numbering continues from the right place. - It removes the old database sequence objects tied to the No Gap method. - After finishing, it returns you to the list of sequences.
It touches the sequence model ir.sequence, the settings screen res.config.settings, and adds the wizard model sequence.standard.default.
Depends on
Models and fields (2)
- res.config.settings · extends an existing model
- sequence.standard.default · new model
Text generated by AI (DeepSeek) from reading the Odoo 12.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/server-tools.
terminal Installation and usage
No verified informationInstallation 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.