| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 322 |
| Technical Name |
mjb_sequence_rule |
| License | OPL-1 |
| Website | https://www.majorbird.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 322 |
| Technical Name |
mjb_sequence_rule |
| License | OPL-1 |
| Website | https://www.majorbird.com |
Sequence Rule Engine
A configurable, no-code rule engine that auto-stamps fields on any Odoo model with sequence values â without writing a single line of Python.
$49 â One-time purchase Odoo 19.0â ï¸ The Problem
Auto-numbering a field in Odoo â such as a partner reference, a product
internal code, or an equipment ID â requires a developer to write a
_compute_ method or override create().
For functional consultants and power users, this means raising a ticket,
waiting for a developer, and paying for custom code that breaks on every
upgrade. There is no built-in way to configure field stamping from the
Odoo UI.
What the Engine Does
| Feature | Description |
|---|---|
| Target any model | Pick the model, pick the field â the engine creates the automated action for you. |
| Standard mode |
Uses a standard ir.sequence with full
prefix, suffix, and padding control. Built-in no-overwrite
guard â existing values are never overwritten.
|
| By-code mode |
Link a custom ir.actions.server for advanced
stamping logic â conditionals, cross-model values, computed codes.
|
| Domain filter | Restrict which records trigger the rule using a standard Odoo domain (e.g. only stamp company records, not individuals). |
| Multi-company aware | Sequences can be scoped to a specific company, giving each entity its own numbering series. |
| Multiple rules per model | Add as many rules as needed for the same model â each rule creates its own automated action and stamps its own field. |
| Enable / disable toggle | Rules can be paused and reactivated without losing configuration. The automated action is cleanly deactivated, not deleted. |
Key Features
No-Code Configuration
Create, configure, and enable stamping rules entirely from the Odoo Settings menu. No developer required.
Full Sequence Control
Set prefix, suffix, padding, and starting number per rule. The built-in sequence editor is accessible directly from the rule form.
No-Overwrite Guard
In standard mode the engine never overwrites a field that already has a value â safe to enable on existing data.
Clean Lifecycle
Deleting a rule automatically removes its automated action and server action. No orphaned records left behind.
Satellite-Ready
Companion "satellite" modules (sold separately) provide pre-configured rules for common fields â partner ref, product code, barcode, and more.
Role-Based Access
Two security groups: User (read-only) and Manager (full CRUD). Settings administrators get Manager access automatically.
Getting Started
Go to Settings â Technical â Sequence Rules
After installation, the menu is available to users with the Sequence Rule Manager group.
Click New â select your model and target field
Choose any installed Odoo model from the dropdown, then pick the field(s) to stamp. Add an optional domain to filter which records trigger the rule.
Choose Standard or By-Code mode
Standard: click Edit Sequence to configure
prefix, suffix, and padding â a new ir.sequence is
created automatically.
By Code: click Edit Server Action to write
custom Python logic (advanced users).
Toggle Enable â the rule is live
Flip the Enabled switch. The engine creates an automated
action on base.automation and the field will be
stamped on every new record (and on write if the field is empty).
Scope & Limitations
This module does NOT:
- Backfill existing records â only new creates/writes are stamped
- Support Many2many or One2many field types as stamp targets
- Provide a UI wizard for bulk re-numbering of existing data
- Override fields that already have a value (by design, in standard mode)
- Replace Odoo's built-in sequence features on sale orders, invoices, etc. â those have their own native numbering
ð¦ Version 19.0.1.0.1
This is the first stable release of the Sequence Rule Engine on Odoo 19. All core features are fully tested and functional. If you encounter any issue or have a feature request, we welcome your feedback via the Odoo Apps support system. Your input shapes the next version.
by Majorbird — Odoo Silver Partner
About Majorbird
Odoo Silver Partner â Manufacturing, Inventory & Accounting Automation
Offices in Vietnam, China, Mexico, and the Middle East.
www.majorbird.comOdoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module