OdooWiki OCA HUB

Barcode Generator Product Variant

barcode_generator_product_variant folder_open OCA/stock-logistics-barcode open_in_new
Tools License: AGPL-3

This module extends barcodes_generator_product to allow barcodes generation from a product template for all its product variants, according to a barcode rule.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Generate barcodes for all variants of a product from the product form, using a barcode rule. A button appears when some variants have no barcode, opening a wizard to apply the rule and create the missing barcodes.

This module adds a way to create barcodes for the variants of a product directly from the product form. On a product template, Odoo now checks whether any variant is missing a barcode. If so, a button called "Manage missing barcodes" appears next to the barcode field. The button is only visible to users who have the barcode generation permission.

Clicking the button opens a small wizard window. The wizard shows the product and lists only the variants that still have no barcode, with their internal reference, attribute values, current barcode, rule and base. The user picks a barcode rule from those configured for products with sequence generation; a default rule is pre-selected if one exists. Then the user clicks "Apply rule and generate Barcodes".

The module then assigns the chosen rule to those variants, creates a barcode base for any variant that does not have one, and generates the barcodes. The wizard can be closed without generating anything.

The module also hides the barcode rule, barcode base and the individual generation buttons that the base module added to the product form, so users work through the new wizard instead. It touches the product template and product variant models, and adds a new wizard model. A demo barcode rule and sequence are included for testing.

Models and fields (2)
  • product.template · extends an existing modelhas_missing_barcodes
  • product.product.barcode.wizard · new modelproduct_ids (Variants), barcode_rule_id (Barcode Rule), product_tmpl_id (Product)

Text generated by AI (DeepSeek) from reading the Odoo 14.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 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 14.0

For barcode rule setup, please refer to readme of barcodes_generator_product.

In user, enable boolean "Generate Barcodes".

In each product template related to a variant without a set barcode, a button "manage missing barcodes" will appear (or: if all variants of a product template have a barcode set, this button will not appear in product template).

Clicking the button opens a wizard displaying all variants without a barcode set. Selecting a barcode rule and clicking "Apply rule and generate barcodes" will assign a base and a barcode to each variant.

In barcode rule, a new boolean "Is Default Barcode Rule" allows the rule to be automatically selected when opening the wizard.

No verified information in OCA: Installation, Configuration.

info

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.