This module extends the ir.sequence allowing range_end_ legends. It adds the following legends:
- The end of date_range year with century: %(range_end_year)s
- The end of date_range year without century: %(range_end_y)s
- The end of date_range month: %(range_end_month)s
- The end of date_range day: %(range_end_day)s
- The end of date_range day of the year: %(range_end_doy)s
- The end of date_range week of the year: %(range_end_woy)s
- The end of date_range weekday: %(range_end_weekday)s
- The end of date_range hour in 24-hour: %(range_end_h24)s
- The end of date_range hour in 12-hour: %(range_end_h12)s
- The end of date_range minute: %(range_end_min)s
- The end of date_range second: %(range_end_sec)s
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Adds new date placeholders to Odoo sequence prefixes and suffixes so numbering can include the end date of a sequence date range, such as the last day, month or year of the period.
This module extends how Odoo builds sequence numbers when a sequence uses date ranges. Normally a sequence prefix or suffix can include the current date, but not the end of the range. This module adds extra placeholders for the range end date.
When a sequence with a date range generates its next number, the system automatically passes the range's end date into the numbering logic. Users can then use placeholders such as the range end year, month, day, day of the year, week of the year, weekday, hour, minute and second in the prefix or suffix of a sequence.
- Works on the
ir.sequencemodel and its date range records (ir.sequence.date_range). - No new menus or screens are added; the new placeholders are used in the existing sequence configuration form.
- The values are computed automatically each time a number is generated, based on the end date of the active date range.
- If no range end date is available, the placeholder produces no value.
This is useful for Thai localization scenarios where documents must show the period covered by a running number, for example a sequence that ends with the closing date of the range.
Depends on
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.