Generate Barcodes for Products
barcodes_generator_product · OCA/stock-logistics-barcode
product_barcode_generator (9.0)-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module expands Odoo functionality, allowing user to generate barcode depending on a given barcode rule for Products.
For example, a typical pattern for products is "20.....{NNNDD}" that means that:
- the EAN13 code will begin by '20'
- followed by 5 digits (named Barcode Base in this module)
- and after 5 others digits to define the variable price
- a 13 digit control
Another common pattern is "8012345....." which means that:
- the EAN13 code will begin with '8012345'
- followed by 5 digits (named Barcode Base in this module)
- and finally the 13th digit is the control digit
Note that a dot is not necessary in the pattern as the control digit is added automatically.
With this module, it is possible to:
-
Assign a pattern (barcode.rule) to a product.product
-
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)
- automaticaly 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_variant_easy_edit_view |
product.product | Inherits product.product_variant_easy_edit_view | ||
view_product_product_form |
product.product | form | Inherits product.product_normal_form_view | |
view_product_template_form |
product.template | form | Inherits product.product_template_only_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
generate_modelSelectionselection_add=[('product.product', 'Products')]
No public methods.
No new fields.
Public methods (0)No public methods.
-
barcode_baseIntegercompute='_compute_barcode_base'inverse='_inverse_barcode_base' -
barcode_rule_idMany2one → barcode.rulecomodel_name='barcode.rule'compute='_compute_barcode_rule_id'inverse='_inverse_barcode_rule_id'string='Barcode Rule' -
generate_typeSelectionreadonly=Truerelated='product_variant_ids.barcode_rule_id.generate_type'string='Generate Type'
-
generate_barcode(self) -
generate_base(self) -
onchange_barcode_rule_id(self)@api.onchange('barcode_rule_id')
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…