OdooWiki OCA HUB

Account Sequence Option

account_sequence_option folder_open OCA/account-financial-tools open_in_new
Accounting License: LGPL-3

This module extends module base_sequence_option and allow you to provide optional sequences for account.move documents, i.e., invoice, bill, journal entry.

To use this module, enable developer mode, and check "Use sequence options" under Settings -\> Technical -\> Manage Sequence Options.

If you want to define your sequences in XML, feel free to use demo/account_demo_options.xml as a base for your own sequence definitions.

The demo sequences use a continuous numbering scheme, without the current year in the generated name. To use a scheme that does include the year, set use_date_range to true, and use %(range_year)s the represent the year. For example, to generate an invoice scheme that will generate "2022F00001" in 2022, try:

Customer Invoice

%(range_year)sF true

Odoo will generate the date ranges automagically when the first invoice (or vendor bill, etc) of a year is posted.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you choose different numbering sequences for invoices, bills, refunds, payments and journal entries, instead of Odoo's single default sequence per journal.

This module adds optional numbering sequences for accounting documents. Instead of one sequence per journal, you can define several sequence options and let Odoo pick the right one automatically based on the document type.

  • In the sequence option configuration (Settings > Technical > Manage Sequence Options), a new option "account.move" is available, covering invoices, bills, refunds, payments and journal entries.
  • Each option line has a filter (for example, customer invoice, vendor bill, customer refund, vendor refund, customer payment, vendor payment) and points to a specific sequence.
  • When a document is posted, Odoo looks for a matching option and assigns the number from that sequence. If no option matches, the normal journal sequence is used.
  • A hidden technical flag on the invoice/journal entry form records whether the number came from a sequence option.
  • Draft or cancelled documents keep the placeholder "/" number, and the date-sequence consistency check is skipped for documents handled by a sequence option.
  • The module also changes how Odoo looks for the last used number, so option-based numbers do not interfere with the journal's own sequence.

It touches account.move and ir.sequence.option, and adds a field to the invoice/journal entry form view.

Depends on

Models and fields (2)
  • account.move · extends an existing modelsequence_option
  • ir.sequence.option · extends an existing modelmodel

Text generated by AI (DeepSeek) from reading the Odoo 18.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/account-financial-tools.

terminal Installation and usage

No verified information

Installation 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.

info

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.