Roman Numeral Sequence - 001/SO/IX/2026 Numbering
by Tamadoo https://tamadoo-odoo.github.io/modules/tamadoo_sequence_roman_month/$ย 4.99
Roman Numeral Sequence - 001/SO/IX/2026 Numbering
Number your documents the Indonesian way, like 001/SO/IX/2026: the month (and day) as a Roman numeral in the prefix or suffix of any Odoo sequence. For sales, purchases, transfers and manufacturing orders.
I, II, III ... XII in your document numbers
What you get
Roman month
%(roman_month)s gives I to XII: 001/SO/IX/2026, 001/PO/XI/2026, DO/2026/XI/072, MO/XI/2026/007...
Roman day
%(roman_day)s gives I to XXXI, for numbers like 001/XXIV.IX/2026.
Date ranges
Works with yearly or monthly subsequences: the counter restarts at 001; with monthly ranges, %(range_roman_month)s is the month of the order date.
range_ and current_
%(range_roman_month)s and %(current_roman_month)s, exactly like Odoo's own range_ and current_ variables.
Mix freely
Combine with every standard placeholder: %(year)s, %(y)s, %(month)s, %(day)s... in prefix and suffix.
In the legend
The sequence form lists the new placeholders under the standard legend, with an example.
Nothing changes by itself
Your existing numbering stays as it is until you put a Roman placeholder in a sequence.
Tiny and safe
Depends on base only; no new tables, and installing it does not modify any of your sequences.
Which documents?
| โ Sales: quotations / sales orders | sequence Sales Order (code sale.order) |
| โ Purchase: RFQs / purchase orders | sequence Purchase Order (code purchase.order) |
| โ Inventory: receipts, deliveries, internal transfers | the sequence of each operation type |
| โ Manufacturing: manufacturing orders | the sequence of the manufacturing operation type |
โ Not covered: Invoices, credit notes, vendor bills, journal entries and payments. Odoo Accounting does not number them with sequences: each new number is derived from the previous entry of the journal. Do not rename an invoice to 001/INV/IX/2026 by hand either: Odoo would continue with 001/INV/IX/2027.
How it works
- The placeholders work in the prefix and the suffix of every sequence (
ir.sequence). The four document types above were tested on Odoo 17.0; other documents numbered by a sequence (scrap orders, unbuild orders, POS, your own modules...) use the same mechanism but were not tested one by one. - The Roman month follows the same date as Odoo's
%(month)s: on Odoo 17.0 that is the day the number is given, also with date ranges. To number by the order date, give the sequence one date range per month and use%(range_roman_month)s: sales and purchase orders pass their order date, which picks the range. %(range_roman_month)sis the first month of the date range (I for yearly ranges);%(current_roman_month)sis always today.- Changing the Sequence Prefix of an operation type in Inventory makes Odoo rewrite the prefix of its sequence; add the Roman placeholder again afterwards.
- Write
%%(roman_month)sfor a literal text, as with every Odoo placeholder.
Step by step
Set up the sequence
Sales Order sequence: no prefix, suffix /SO/%(range_roman_month)s/%(range_year)s, size 3, one date range per month. The new placeholders are listed under the legend.
Quotations and sales orders
The order date picks the monthly range: September is IX, October X, December XII, each month from 001. The four quotations have order dates in September, October, November and December 2026; the list shows their creation date.
The sales order
The name is given when the quotation is created and is kept on confirmation.
Purchase orders
The Purchase Order sequence with /PO/%(roman_month)s/%(range_year)s.
Transfers
Delivery orders with the prefix DO/%(year)s/%(roman_month)s/; receipts and internal transfers work the same way.
Manufacturing orders
The manufacturing operation type's sequence with the prefix MO/%(roman_month)s/%(year)s/.
Any sequence
Every operation type has its own sequence under Settings > Technical > Sequences.
Set up in 5 minutes
- Install the module (depends on base only).
- Activate the developer mode and open Settings > Technical > Sequences & Identifiers > Sequences.
- Open the sequence of the document, for example Sales Order, Purchase Order or <Company> Sequence out (delivery orders).
- Put the placeholder in the prefix or suffix, for example suffix /SO/%(roman_month)s/%(year)s with Sequence Size 3 for 001/SO/IX/2026.
- Optional: tick Use subsequences per date_range to restart at 001 every year. To restart every month and number by the order date, add one date range per month and use %(range_roman_month)s.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 56 |
| Technical Name |
tamadoo_sequence_roman_month |
| License | OPL-1 |
| Website | https://tamadoo-odoo.github.io/modules/tamadoo_sequence_roman_month/ |
Odoo 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