Thein Htoo Aung logo Thein Htoo Aung Odoo Developer · Backend Engineer
Back to Projects

Sequence Mixin Extension

An Odoo 19 accounting extension that adds daily reset support to account.move sequence detection without modifying Odoo core.

Completed Odoo ERP 2026
Odoo 19 Python Accounting ORM Inheritance Sequence Mixin Regex Resequence Wizard
Sequence Mixin Extension cover image

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_regex support
  • No direct modification of Odoo source files

Technical Highlights

  • Extended sequence.mixin
  • Added strict daily regex detection
  • Added day support to sequence format parsing
  • Added exact-date sequence period calculation
  • Extended account.move sequence warning behavior
  • Extended account.resequence.wizard preview 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.