Sequence from Python expression

sequence_python
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/19.0/sequence_python
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, bosd
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to generate a sequence by a Python formula
expression.

Besides common Python functions and operators, it provides several
functions like 'random' and 'uuid' in the expression, as well as
variables such as the next number in the sequence. These are also listed
next to the input field on the sequence form view.

If you want to add more variables for use in the expression, you can
extend this module.

Use cases for this module could be:

- You want to generate alphanumeric numbering
- You want to apply some math to the number to prevent customers from
  knowing their place in the sequence
- You want to use UUID

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sequence_view ir.sequence xpath Inherits base.sequence_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • python_code Text
    default=DEFAULT_PYTHON_CODE help='Write Python code that generates the sequence body.' string='Python expression'
  • python_code_preview Char
    compute='_compute_python_code_preview' args: 'Preview'
  • use_python_code Boolean
    default=False string='Use Python'
Public methods (1)
  • get_next_char(self, number_next)
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/18.0/sequence_python
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Bhavesh Heliconia
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to generate a sequence by a Python formula
expression.

Besides common Python functions and operators, it provides several
functions like 'random' and 'uuid' in the expression, as well as
variables such as the next number in the sequence. These are also listed
next to the input field on the sequence form view.

If you want to add more variables for use in the expression, you can
extend this module.

Use cases for this module could be:

- You want to generate alphanumeric numbering
- You want to apply some math to the number to prevent customers from
  knowing their place in the sequence
- You want to use UUID

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sequence_view ir.sequence xpath Inherits base.sequence_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • python_code Text
    default=DEFAULT_PYTHON_CODE help='Write Python code that generates the sequence body.' string='Python expression'
  • python_code_preview Char
    compute='_compute_python_code_preview' args: 'Preview'
  • use_python_code Boolean
    default=False string='Use Python'
Public methods (1)
  • get_next_char(self, number_next)
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/17.0/sequence_python
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Tom, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to generate a sequence by a Python formula
expression.

Besides common Python functions and operators, it provides several
functions like 'random' and 'uuid' in the expression, as well as
variables such as the next number in the sequence. These are also listed
next to the input field on the sequence form view.

If you want to add more variables for use in the expression, you can
extend this module.

Use cases for this module could be:

- You want to generate alphanumeric numbering
- You want to apply some math to the number to prevent customers from
  knowing their place in the sequence
- You want to use UUID

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sequence_view ir.sequence xpath Inherits base.sequence_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • python_code Text
    default=DEFAULT_PYTHON_CODE help='Write Python code that generates the sequence body.' string='Python expression'
  • python_code_preview Char
    compute='_compute_python_code_preview' args: 'Preview'
  • use_python_code Boolean
    default=False string='Use Python'
Public methods (1)
  • get_next_char(self, number_next)
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/16.0/sequence_python
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, ntsirintanis
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:53
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sequence_view ir.sequence xpath Inherits base.sequence_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • python_code Text
    default=DEFAULT_PYTHON_CODE help='Write Python code that generates the sequence body.' string='Python expression'
  • python_code_preview Char
    compute='_compute_python_code_preview' args: 'Preview'
  • use_python_code Boolean
    default=False string='Use Python'
Public methods (1)
  • get_next_char(self, number_next)
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/15.0/sequence_python
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT
COMMITTERS
COMMITTERSAlexandre Fayolle, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:39
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sequence_view ir.sequence xpath Inherits base.sequence_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • python_code Text
    default=DEFAULT_PYTHON_CODE help='Write Python code that generates the sequence body.' string='Python expression'
  • python_code_preview Char
    compute='_compute_python_code_preview' args: 'Preview'
  • use_python_code Boolean
    default=False string='Use Python'
Public methods (1)
  • get_next_char(self, number_next)
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/14.0/sequence_python
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT
COMMITTERS
COMMITTERSFrancesco Apruzzese, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sequence_view ir.sequence xpath Inherits base.sequence_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • python_code Text
    default=DEFAULT_PYTHON_CODE help='Write Python code that generates the sequence body.' string='Python expression'
  • python_code_preview Char
    compute='_compute_python_code_preview' args: 'Preview'
  • use_python_code Boolean
    default=False string='Use Python'
Public methods (1)
  • get_next_char(self, number_next)
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/13.0/sequence_python
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYGeneric Modules
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT
COMMITTERS
COMMITTERSStefan Rijnhart, oca-travis, OCA-git-bot, Tom Blauwendraat
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sequence_view ir.sequence xpath Inherits base.sequence_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • python_code Text
    default=DEFAULT_PYTHON_CODE help='Write Python code that generates the sequence body.' string='Python expression'
  • python_code_preview Char
    compute='_compute_python_code_preview' args: 'Preview'
  • use_python_code Boolean
    default=False string='Use Python'
Public methods (1)
  • get_next_char(self, number_next)