Generate Barcodes for Packaging
This module expands Odoo functionality, allowing user to generate barcode depending on a given barcode rule for Product Packaging.
For example, a typical pattern for partners is "042........." that means that:
- the EAN13 code will begin by '042'
- followed by 0 digits (named Barcode Base in this module)
- a 13 digit control
With this module, it is possible to:
- Affect a pattern (barcode.rule) to a product.packaging
- 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 to increment a sequence. (typical case of a customer number incrementation)
- Generate a barcode, based on the defined pattern and the barcode base
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Lets users assign a barcode rule to a product packaging and generate its barcode automatically from a sequence or from a manually entered base.
This module adds barcode generation to product packaging records, so you no longer have to type packaging barcodes by hand.
On the packaging form, a new Barcode Rule field appears next to the barcode. Only rules configured for Product Packaging can be selected. Once a rule is chosen, a Barcode Base field and a Generate Base button become visible.
- If the rule uses a manual base, you type the base yourself.
- If the rule uses a sequence, the base is filled in automatically and the barcode field becomes read-only.
- The Generate Barcode button creates the final barcode from the chosen rule and base.
These fields and buttons are only shown to users who belong to the barcode generation group. The module also extends the barcode rule configuration so that Product Packaging is available as a target model for a rule, and it touches the product.packaging and barcode.rule models. Demo data shows a packaging rule using an EAN13 pattern starting with 123 and a sequence with 10-digit padding.
Depends on
Models and fields (2)
- barcode.rule · extends an existing modelgenerate_model
- product.packaging · new model
Text generated by AI (DeepSeek) from reading the Odoo 16.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-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-barcode.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0To configure this module, see the 'Configuration' Section of the description of the module 'barcodes_generator_abstract'
Usage
Source · Odoo 16.0To use this module, you need to:
- Go to a Packaging form:
1 for manual generation
- Set a Barcode Rule
- Set a Barcode Base
- click on the button 'Generate Barcode'
2 for automatic generation
- Set a Barcode Rule
- click on the button 'Generate Base'
- click on the button 'Generate Barcode'
No verified information in OCA: Installation.
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.
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.