Sequence Mixin Extension
An Odoo 19 accounting extension that adds daily reset support to account.move sequence detection without modifying Odoo core.
Problem
Odoo accounting sequences commonly support fixed, yearly, monthly, and financial-year numbering patterns. Some accounting operations need document numbers to reset every day, for example BILL/2026/05/28/0001, BILL/2026/05/28/0002, then BILL/2026/05/29/0001.
Without a daily reset extension, date-bearing references that include the day component are not handled as a first-class daily accounting period in the same way monthly and yearly sequence formats are handled.
Solution
I built a focused Odoo 19 module that extends native accounting sequence behavior to support daily reset periods for account.move references while preserving Odoo’s existing sequence logic.
The module does not patch Odoo core. It extends the relevant models through addon-local inheritance, so standard yearly, monthly, financial-year, and fixed numbering behavior remains intact.
Key Features
- Daily sequence detection for references like
BILL/YYYY/MM/DD/0001 - Daily reset of invoice, vendor bill, refund, and journal entry numbers
- User warning support when a daily sequence format is detected
- Resequence wizard support for daily accounting periods
- Date validation against year, month, and day components
- Journal-specific
sequence_override_regexsupport - No direct modification of Odoo source files
Technical Highlights
- Extended
sequence.mixin - Added strict daily regex detection
- Added
daysupport to sequence format parsing - Added exact-date sequence period calculation
- Extended
account.movesequence warning behavior - Extended
account.resequence.wizardpreview and recomputation logic - Preserved native fallback behavior for non-daily sequence formats
Example Result
BILL/2026/05/28/0001
BILL/2026/05/28/0002
BILL/2026/05/28/0003
BILL/2026/05/27/0001
BILL/2026/05/27/0002 Screenshots
Module interface and workflow
Key screens demonstrating configuration, business workflows, reporting, and user interactions implemented in this project.