Generate Barcodes (Abstract)

barcodes_generator_abstract
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/19.0/barcodes_generator_abstract
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Stéphane Mangin, Vicent-S73
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:47
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends Odoo functionality, allowing user to generate
barcode depending on a given barcode rule for any Model.

For example, if the barcode pattern is "20.....{NNNDD}":

- the EAN13 code will begin with '20',
- followed by 5 digits (named *Barcode Base* in this module),
- followed by 5 others digits to define the variable price with 2
  decimals,
- the last digit (the 13rd digit) is the control digit (i.e. the
  checksum).

With this module, it is possible to:

- Affect a pattern (barcode.rule) to a model

- Define a Barcode base:  
  - manually, if the base of the barcode must be set by a user
    (typically an internal code defined in your company).
  - automatically by a sequence, if you want to let Odoo increment a
    sequence (typical case of a customer number incrementation).

- Generate a barcode, based on the defined pattern and the barcode base

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_barcode_nomenclature_form barcode.nomenclature field Inherits barcodes.view_barcode_nomenclature_form
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False help='This value is used to generate barcode according to the setting of the barcode rule.'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' help='Select a rule to generate a barcode' string='Barcode Rule'
  • generate_type Selection
    related='barcode_rule_id.generate_type'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
    It creates a new barcode if automation is active.
  • generate_barcode(self)
  • generate_base(self)
  • write(self, vals)
    Generate new barcodes if a barcode rule with automation is applied.

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a base and a barcode if this rule is selected.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[]
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n\n - 'Base Set Manually' : User should set manually the value of the barcode base\n - 'Base managed by Sequence': System will generate the base via a sequence" required=True selection=_GENERATE_TYPE
  • padding Integer
    compute='_compute_padding' readonly=True store=True
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Generation Sequence'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
  • generate_sequence_if_required(self)
  • onchange_generate_type(self)
    @api.onchange('generate_type')
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/18.0/barcodes_generator_abstract
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSDenis Roussel, OCA-git-bot, oca-ci, Khôi (Kiên Kim)
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends Odoo functionality, allowing user to generate
barcode depending on a given barcode rule for any Model.

For example, if the barcode pattern is "20.....{NNNDD}":

- the EAN13 code will begin with '20',
- followed by 5 digits (named *Barcode Base* in this module),
- followed by 5 others digits to define the variable price with 2
  decimals,
- the last digit (the 13rd digit) is the control digit (i.e. the
  checksum).

With this module, it is possible to:

- Affect a pattern (barcode.rule) to a model

- Define a Barcode base:  
  - manually, if the base of the barcode must be set by a user
    (typically an internal code defined in your company).
  - automatically by a sequence, if you want to let Odoo increment a
    sequence (typical case of a customer number incrementation).

- Generate a barcode, based on the defined pattern and the barcode base

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_barcode_nomenclature_form barcode.nomenclature field Inherits barcodes.view_barcode_nomenclature_form
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False help='This value is used to generate barcode according to the setting of the barcode rule.'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' help='Select a rule to generate a barcode' string='Barcode Rule'
  • generate_type Selection
    related='barcode_rule_id.generate_type'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
    It creates a new barcode if automation is active.
  • generate_barcode(self)
  • generate_base(self)
  • write(self, vals)
    Generate new barcodes if a barcode rule with automation is applied.

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a base and a barcode if this rule is selected.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[]
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n\n - 'Base Set Manually' : User should set manually the value of the barcode base\n - 'Base managed by Sequence': System will generate the base via a sequence" required=True selection=_GENERATE_TYPE
  • padding Integer
    compute='_compute_padding' readonly=True store=True
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Generation Sequence'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
  • generate_sequence_if_required(self)
  • onchange_generate_type(self)
    @api.onchange('generate_type')
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/17.0/barcodes_generator_abstract
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSIsaac López, Weblate, OCA-git-bot, oca-ci, Sergio Bustamante
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:03
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends Odoo functionality, allowing user to generate
barcode depending on a given barcode rule for any Model.

For example, if the barcode pattern is "20.....{NNNDD}":

- the EAN13 code will begin with '20',
- followed by 5 digits (named *Barcode Base* in this module),
- followed by 5 others digits to define the variable price with 2
  decimals,
- the last digit (the 13rd digit) is the control digit (i.e. the
  checksum).

With this module, it is possible to:

- Affect a pattern (barcode.rule) to a model

- Define a Barcode base:  
  - manually, if the base of the barcode must be set by a user
    (typically an internal code defined in your company).
  - automatically by a sequence, if you want to let Odoo increment a
    sequence (typical case of a customer number incrementation).

- Generate a barcode, based on the defined pattern and the barcode base

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_barcode_nomenclature_form barcode.nomenclature field Inherits barcodes.view_barcode_nomenclature_form
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False help='This value is used to generate barcode according to the setting of the barcode rule.'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' help='Select a rule to generate a barcode' string='Barcode Rule'
  • generate_type Selection
    related='barcode_rule_id.generate_type'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
    It creates a new barcode if automation is active.
  • generate_barcode(self)
  • generate_base(self)
  • write(self, vals)
    Generate new barcodes if a barcode rule with automation is applied.

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a base and a barcode if this rule is selected.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[]
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n\n - 'Base Set Manually' : User should set manually the value of the barcode base\n - 'Base managed by Sequence': System will generate the base via a sequence" required=True selection=_GENERATE_TYPE
  • padding Integer
    compute='_compute_padding' readonly=True store=True
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Generation Sequence'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
  • generate_sequence_if_required(self)
  • onchange_generate_type(self)
    @api.onchange('generate_type')
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/16.0/barcodes_generator_abstract
VERSION
VERSION 3.1.1
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSPedro M. Baeza, Sylvain LE GAL, Isaac López, Weblate, OCA-git-bot, Rodrigo, oca-ci, Ilyas, Sergio Bustamante
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:42
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_barcode_nomenclature_form barcode.nomenclature field Inherits barcodes.view_barcode_nomenclature_form
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False help='This value is used to generate barcode according to the setting of the barcode rule.'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' help='Select a rule to generate a barcode' string='Barcode Rule'
  • generate_type Selection
    related='barcode_rule_id.generate_type'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
    It creates a new barcode if automation is active.
  • generate_barcode(self)
  • generate_base(self)
    Generate a base barcode, based on sequence, if the item has no barcode defined. Raise an exception if the generate_type of the barcode rule is not set to 'sequence'.
  • write(self, vals)
    Generate new barcodes if a barcode rule with automation is applied.

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a base and a barcode if this rule is selected.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[]
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n\n - 'Base Set Manually' : User should set manually the value of the barcode base\n - 'Base managed by Sequence': System will generate the base via a sequence" required=True selection=_GENERATE_TYPE
  • padding Integer
    compute='_compute_padding' readonly=True store=True
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Generation Sequence'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
  • generate_sequence_if_required(self)
  • onchange_generate_type(self)
    @api.onchange('generate_type')
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/15.0/barcodes_generator_abstract
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSmanu, sergio-teruel, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:31
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' string='Barcode Rule'
  • generate_type Selection
    related='barcode_rule_id.generate_type'
Public methods (3)
  • create(self, vals)
    @api.model
    It creates a new barcode if automation is active.
  • generate_barcode(self)
  • generate_base(self)

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a barcode upon creation of a new record in the mixed model.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[]
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n 'Base Set Manually' : User should set manually the value of the barcode base\n 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence" required=True selection=_GENERATE_TYPE
  • padding Integer
    compute='_compute_padding' readonly=True store=True
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence'
Public methods (6)
  • create(self, vals)
    @api.model
  • generate_sequence(self)
  • get_automatic_rule(self, model)
    @api.model
    It provides a cached indicator for barcode automation. Args: model (str): Name of model to search for. Returns: BarcodeRule: Recordset of automated barcode rules for model.
  • get_automatic_rule_ids(self, model)
    @api.model@tools.ormcache('model')
    It provides a cached indicator for barcode automation. Note that this cache needs to be explicitly cleared when `generate_automate` is changed on an associated `barcode.rule`. Args: model (str): Name of model to search for. Returns: list of int: IDs of the automated barcode rules for model.
  • onchange_generate_type(self)
    @api.onchange('generate_type')
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/14.0/barcodes_generator_abstract
VERSION
VERSION 1.0.4
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSHugo Adan, OCA Transbot, oca-travis, Weblate, OCA-git-bot, oca-ci, Kevin Khao, Ilyas, Zar21, Ashish Hirpara, Alessio Renda
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:51
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_barcode_rule_form barcode.rule field Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False string='Barcode Base'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' default=_default_barcode_rule_id string='Barcode Rule'
  • generate_type Selection
    related='barcode_rule_id.generate_type' string='Generate Type'
Public methods (4)
  • create(self, vals)
    @api.model
    It creates a new barcode if automation is active.
  • generate_barcode(self)
  • generate_base(self)
  • write(self, vals)

New fields (6)
  • generate_automate Boolean
    help='Check this to automatically generate a barcode upon creation of a new record in the mixed model.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[] string='Generate Model'
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n 'Base Set Manually' : User should set manually the value of the barcode base\n 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence" required=True selection=_GENERATE_TYPE string='Generate Type'
  • is_default Boolean
    copy=False args: 'Is Default Barcode Rule'
  • padding Integer
    compute='_compute_padding' readonly=True store=True string='Padding'
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Sequence Id'
Public methods (6)
  • create(self, vals)
    @api.model
  • generate_sequence(self)
  • get_automatic_rule(self, model)
    @api.model
    It provides a cached indicator for barcode automation. Args: model (str): Name of model to search for. Returns: BarcodeRule: Recordset of automated barcode rules for model.
  • get_automatic_rule_ids(self, model)
    @api.model@tools.ormcache('model')
    It provides a cached indicator for barcode automation. Note that this cache needs to be explicitly cleared when `generate_automate` is changed on an associated `barcode.rule`. Args: model (str): Name of model to search for. Returns: list of int: IDs of the automated barcode rules for model.
  • onchange_generate_type(self)
    @api.onchange('generate_type')
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/13.0/barcodes_generator_abstract
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Carlos Roca
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False string='Barcode Base'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' string='Barcode Rule'
  • generate_type Selection
    readonly=True related='barcode_rule_id.generate_type' selection=_GENERATE_TYPE string='Generate Type'
Public methods (3)
  • create(self, vals)
    @api.model
    It creates a new barcode if automation is active.
  • generate_barcode(self)
  • generate_base(self)

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a barcode upon creation of a new record in the mixed model.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[] string='Generate Model'
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n 'Base Set Manually' : User should set manually the value of the barcode base\n 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence" required=True selection=_GENERATE_TYPE string='Generate Type'
  • padding Integer
    compute='_compute_padding' readonly=True store=True string='Padding'
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Sequence Id'
Public methods (6)
  • create(self, vals)
    @api.model
  • generate_sequence(self)
  • get_automatic_rule(self, model)
    @api.model
    It provides a cached indicator for barcode automation. Args: model (str): Name of model to search for. Returns: BarcodeRule: Recordset of automated barcode rules for model.
  • get_automatic_rule_ids(self, model)
    @api.model@tools.ormcache('model')
    It provides a cached indicator for barcode automation. Note that this cache needs to be explicitly cleared when `generate_automate` is changed on an associated `barcode.rule`. Args: model (str): Name of model to search for. Returns: list of int: IDs of the automated barcode rules for model.
  • onchange_generate_type(self)
    @api.onchange('generate_type')
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/12.0/barcodes_generator_abstract
VERSION
VERSION 1.0.4
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSDenis Roussel, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Carmen Bianca BAKKER, oca-ci, Cyril Vinh-Tung
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-barcode
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False string='Barcode Base'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' string='Barcode Rule'
  • generate_type Selection
    readonly=True related='barcode_rule_id.generate_type' selection=_GENERATE_TYPE string='Generate Type'
Public methods (3)
  • create(self, vals)
    @api.model
    It creates a new barcode if automation is active.
  • generate_barcode(self)
    @api.multi
  • generate_base(self)
    @api.multi

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a barcode upon creation of a new record in the mixed model.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[] string='Generate Model'
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n 'Base Set Manually' : User should set manually the value of the barcode base\n 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence" required=True selection=_GENERATE_TYPE string='Generate Type'
  • padding Integer
    compute='_compute_padding' readonly=True store=True string='Padding'
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Sequence Id'
Public methods (6)
  • create(self, vals)
    @api.model
  • generate_sequence(self)
    @api.multi
  • get_automatic_rule(self, model)
    @api.model
    It provides a cached indicator for barcode automation. Args: model (str): Name of model to search for. Returns: BarcodeRule: Recordset of automated barcode rules for model.
  • get_automatic_rule_ids(self, model)
    @api.model@tools.ormcache('model')
    It provides a cached indicator for barcode automation. Note that this cache needs to be explicitly cleared when `generate_automate` is changed on an associated `barcode.rule`. Args: model (str): Name of model to search for. Returns: list of int: IDs of the automated barcode rules for model.
  • onchange_generate_type(self)
    @api.onchange('generate_type')@api.multi
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/11.0/barcodes_generator_abstract
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttps://www.odoo-community.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_barcode_rule_form barcode.rule xpath Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False string='Barcode Base'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' string='Barcode Rule'
  • generate_type Selection
    readonly=True related='barcode_rule_id.generate_type' selection=_GENERATE_TYPE string='Generate Type'
Public methods (3)
  • create(self, vals)
    @api.model
    It creates a new barcode if automation is active.
  • generate_barcode(self)
    @api.multi
  • generate_base(self)
    @api.multi

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a barcode upon creation of a new record in the mixed model.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[] string='Generate Model'
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n 'Base Set Manually' : User should set manually the value of the barcode base\n 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence" required=True selection=_GENERATE_TYPE string='Generate Type'
  • padding Integer
    compute='_compute_padding' readonly=True store=True string='Padding'
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Sequence'
Public methods (6)
  • create(self, vals)
    @api.model
  • generate_sequence(self)
    @api.multi
  • get_automatic_rule(self, model)
    @api.model
    It provides a cached indicator for barcode automation. Args: model (str): Name of model to search for. Returns: BarcodeRule: Recordset of automated barcode rules for model.
  • get_automatic_rule_ids(self, model)
    @api.model@tools.ormcache('model')
    It provides a cached indicator for barcode automation. Note that this cache needs to be explicitly cleared when `generate_automate` is changed on an associated `barcode.rule`. Args: model (str): Name of model to search for. Returns: list of int: IDs of the automated barcode rules for model.
  • onchange_generate_type(self)
    @api.onchange('generate_type')@api.multi
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/10.0/barcodes_generator_abstract
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, La Louve
COMMITTERS
COMMITTERSPedro M. Baeza, Sylvain LE GAL, OCA Transbot, Dave Lasley, oca-travis, Weblate, Benjamin Willig
WEBSITE
WEBSITEhttps://www.odoo-community.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:54
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_barcode_rule_form barcode.rule field Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    copy=False string='Barcode Base'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' string='Barcode Rule'
  • generate_type Selection
    readonly=True related='barcode_rule_id.generate_type' selection=_GENERATE_TYPE string='Generate Type'
Public methods (3)
  • create(self, vals)
    @api.model
    It creates a new barcode if automation is active.
  • generate_barcode(self)
    @api.multi
  • generate_base(self)
    @api.multi

New fields (5)
  • generate_automate Boolean
    help='Check this to automatically generate a barcode upon creation of a new record in the mixed model.' string='Automatic Generation'
  • generate_model Selection
    help="If 'Generate Type' is set, mention the model related to this rule." selection=[] string='Generate Model'
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n 'Base Set Manually' : User should set manually the value of the barcode base\n 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence" required=True selection=_GENERATE_TYPE string='Generate Type'
  • padding Integer
    compute='_compute_padding' readonly=True store=True string='Padding'
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Sequence'
Public methods (6)
  • create(self, vals)
    @api.model
  • generate_sequence(self)
    @api.multi
  • get_automatic_rule(self, model)
    @api.model
    It provides a cached indicator for barcode automation. Args: model (str): Name of model to search for. Returns: BarcodeRule: Recordset of automated barcode rules for model.
  • get_automatic_rule_ids(self, model)
    @api.model@tools.ormcache('model')
    It provides a cached indicator for barcode automation. Note that this cache needs to be explicitly cleared when `generate_automate` is changed on an associated `barcode.rule`. Args: model (str): Name of model to search for. Returns: list of int: IDs of the automated barcode rules for model.
  • onchange_generate_type(self)
    @api.onchange('generate_type')@api.multi
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/stock-logistics-barcode
GIT
GIThttps://github.com/OCA/stock-logistics-barcode.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-barcode/tree/9.0/barcodes_generator_abstract
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, La Louve
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, La Louve
COMMITTERS
COMMITTERSSylvain LE GAL, GitHub, OCA Transbot, Dave Lasley, oca-travis, Weblate
WEBSITE
WEBSITEhttp://www.odoo-community.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - barcodes
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES barcode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_barcode_rule_form barcode.rule field Inherits barcodes.view_barcode_rule_form
Models touched (2)

New fields (3)
  • barcode_base Integer
    string='Barcode Base'
  • barcode_rule_id Many2one → barcode.rule
    comodel_name='barcode.rule' string='Barcode Rule'
  • generate_type Selection
    readonly=True related='barcode_rule_id.generate_type' selection=_GENERATE_TYPE string='Generate Type'
Public methods (2)
  • generate_barcode(self)
    @api.multi
  • generate_base(self)
    @api.multi

New fields (4)
  • generate_model Selection
    help="if 'Generate Type' is set, mention the model related to this rule." selection=[] string='Generate Model'
  • generate_type Selection
    default='no' help="Allow to generate barcode, including a number (a base) in the final barcode.\n 'Base Set Manually' : User should set manually the value of the barcode base\n 'Base managed by Sequence': User will use a button to generate a new base. This base will be generated by a sequence" required=True selection=_GENERATE_TYPE string='Generate Type'
  • padding Integer
    compute='_compute_padding' readonly=True store=True string='Padding'
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' string='Sequence'
Public methods (2)
  • generate_sequence(self)
    @api.multi
  • onchange_generate_type(self)
    @api.onchange('generate_type')@api.multi