This module refactor the ir.sequence allowing more legends to be added with minimal code duplication.
Adding more legends to ir.sequence requires an extension of an inner method _interpolation_dict() of the _get_prefix_suffix() method. An extension of an inner method is impractical, therefore this module override the _get_prefix_suffix() method by moving the inner private method _interpolation_dict() to a private method. Therefore, this allows another module to add more legends to the ir.sequence.
This modules works as a base module to other modules to add more legends to ir.sequence.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0This module prepares Odoo's numbering sequences so other modules can add extra date placeholders (legends) to sequence prefixes and suffixes with minimal code duplication. It changes nothing visible for end users by itself.
This is a technical base module for sequence numbering. It does not add menus, screens, buttons or reports, and it does not change any field on any form.
What it does: Odoo builds document numbers from a sequence's prefix and suffix, replacing placeholders such as year, month, day, week and time values with the current date. In standard Odoo this replacement logic is written as an inner function, which makes it hard for other modules to add new placeholders. This module moves that logic into a reusable private method on the sequence model, so other modules can extend it and offer additional placeholders.
Where it appears: nowhere in the user interface. It only touches the ir.sequence model, which is the configuration object behind automatic document numbering.
Business rules and behaviours: the existing placeholders keep working exactly as before (year, month, day, two-digit year, day of year, week of year, weekday, 24-hour, 12-hour, minutes and seconds, plus range and current variants). If a sequence prefix or suffix contains an unknown placeholder, the module raises a clear error message instead of failing silently.
In short, it is an enabler for other localization modules; on its own it changes no daily workflow.
Depends on
Required by other modules
Models and fields (1)
- ir.sequence · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 14.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 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/l10n-thailand.
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.