Thai Localization - Sequence with Company Branch
This module extends the ir.sequence allowing more legends. It adds the following legends:
- Company branch number (5-digit): %(b5)s
- Company branch number (4-digit): %(b4)s
- Company branch number (3-digit): %(b3)s
- Company branch number (2-digit): %(b2)s
- Company branch number (1-digit): %(b1)s
Note: This module depends on the l10n_th_partner. If the branch field is not set, the company branch number will be computed as "00000".
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Adds company branch number placeholders to Odoo sequence prefixes and suffixes, so documents can include the branch code in their numbering.
This module extends the sequence configuration screen so that document numbers can include the company's branch number. It adds five new placeholders that you can type in the prefix or suffix of any sequence: %(b5)s for the full 5-digit branch number, and %(b4)s, %(b3)s, %(b2)s, %(b1)s for the last 4, 3, 2 or 1 digits.
Where it appears: - On the sequence form (the screen where you set the prefix and suffix of a numbering rule), a new block of help text lists these five placeholders.
Business rules and automatic behaviour: - When a sequence is used, the branch number is taken from the company linked to that sequence. - If the company has no branch set, the value used is 00000, so the shorter placeholders become 0000, 000, 00 and 0. - The branch number is padded with leading zeros to always be 5 digits before the shorter versions are cut from the end.
It touches the sequence model ir.sequence and relies on the branch field provided by the Thai partner localization. It does not add new menus or reports; it only enriches existing sequence numbering.
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.