Account Sequence Option

account_sequence_option
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/18.0/account_sequence_option
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Frédéric GRALL
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:07
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_sequence_option
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES odoo_test_helper
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
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:

    <record id="seq_customer_invoice_1" model="ir.sequence">
        <field name="name">Customer Invoice</field>
        <field name="padding" eval="5" />
        <field name="prefix">%(range_year)sF</field>
        <field name="use_date_range">true</field>
    </record>

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

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_sequence_option_view_move_form account_sequence_option_view_move_form account.move xpath Inherits account.view_move_form
Models touched (2)

New fields (1)
  • sequence_option Boolean
    compute='_compute_sequence_option' copy=False default=False index=True store=True
Public methods (0)

No public methods.

New fields (1)
  • model Selection
    ondelete={'account.move': 'cascade'} selection_add=[('account.move', 'account.move')]
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/17.0/account_sequence_option
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Antoni Marroig Campomar
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_sequence_option
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES odoo_test_helper
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
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:

    <record id="seq_customer_invoice_1" model="ir.sequence">
        <field name="name">Customer Invoice</field>
        <field name="padding" eval="5" />
        <field name="prefix">%(range_year)sF</field>
        <field name="use_date_range">true</field>
    </record>

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

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_sequence_option_view_move_form account_sequence_option_view_move_form account.move xpath Inherits account.view_move_form
Models touched (2)

New fields (1)
  • sequence_option Boolean
    compute='_compute_sequence_option' copy=False default=False index=True store=True
Public methods (0)

No public methods.

New fields (1)
  • model Selection
    ondelete={'account.move': 'cascade'} selection_add=[('account.move', 'account.move')]
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/16.0/account_sequence_option
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSWeblate, oca-ci, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:47
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_sequence_option
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES odoo_test_helper
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_sequence_option_view_move_form account_sequence_option_view_move_form account.move xpath Inherits account.view_move_form
Models touched (2)

New fields (1)
  • sequence_option Boolean
    compute='_compute_sequence_option' copy=False default=False index=True store=True
Public methods (0)

No public methods.

New fields (1)
  • model Selection
    ondelete={'account.move': 'cascade'} selection_add=[('account.move', 'account.move')]
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/15.0/account_sequence_option
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSWeblate, oca-ci, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:34
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_sequence_option
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES odoo_test_helper
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_sequence_option_view_move_form account_sequence_option_view_move_form account.move xpath Inherits account.view_move_form
Models touched (2)

New fields (1)
  • sequence_option Boolean
    compute='_compute_sequence_option' copy=False default=False index=True store=True
Public methods (0)

No public methods.

New fields (1)
  • model Selection
    ondelete={'account.move': 'cascade'} selection_add=[('account.move', 'account.move')]
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/14.0/account_sequence_option
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, Kitti U, angel, Bert Driehuis
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_sequence_option
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_sequence_option_view_move_form account_sequence_option_view_move_form account.move xpath Inherits account.view_move_form
Models touched (2)

New fields (1)
  • sequence_option Boolean
    compute='_compute_name' copy=False default=False index=True store=True
Public methods (0)

No public methods.

New fields (1)
  • model Selection
    ondelete={'account.move': 'cascade'} selection_add=[('account.move', 'account.move')]
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/account-financial-tools
PULL REQUEST
PULL REQUEST[19.0][MIG] account_sequence_option (#2215)