Product and Variant Barcode Generator

Readable, unique barcodes for every product variant, generated from your own codes

Product and Variant Barcode Generator is an Odoo 19 app that builds a fixed 20 character barcode for every variant from its category, attributes such as colour, size and material, and a date segment. New variants get their barcode on creation, and a background job fills in barcodes for the catalogue you already have.

Odoo 19.0 · Enterprise · Odoo.sh, On-premise · 69,30 € · Buy on Odoo Apps

Available for: Odoo 19.0

The problem

Hand-typed barcodes drift out of step with the catalogue. One person codes by category, another by supplier, a third leaves the field empty, and a medium and a large end up with the same code. Random numbers are also impossible to read, so counts and picking slow down. The result is stock counts that will not reconcile and pickers who scan the wrong size.

What it does

Segment-based barcode structure

Fixed length and duplicate protection

Generation and backfill

Diagnostics

Odoo barcode structure diagram with the segments CAT, STYLE, MAT, COL, SIZE and DATE, example codes TS, 014, CT, BLK, L and 2607, and the resulting barcode
Each segment comes from a code you set on the category or attribute value. Illustration from the store listing.
Odoo barcode backfill panel with counts for synced today, in queue and failed, and a bar chart by weekday
The backfill job generates missing barcodes in the background. Illustration from the store listing with example figures.

Who it is for

Not a fit when:

Install

Requires: Inventory (stock), Discuss (mail)

  1. Buy the app on the Odoo Apps Store for Odoo 19.0.
  2. Add the module to your Odoo.sh repository or your on-premise addons path.
  3. Update the apps list in Odoo and install Product and Variant Barcode Generator. Odoo installs Inventory and Discuss with it if they are missing.

Each Odoo version is published as its own version of the app, so a licence for Odoo 19 covers the 19.0 release only. Odoo Online does not allow third-party apps, so the app cannot be installed there.

Configure

  1. Set a two character category code on your product categories, and choose which level of the category tree the barcode reads.
  2. Set the segment type on each product attribute, for example colour, size or material. Colour, size and material attributes are detected automatically.
  3. Set a code for each attribute value, such as BLK for black or a code for each size.
SettingWhat it does
Category codeTwo character code that forms the first segment of the barcode.
Category levelWhich level of the category tree the category code is read from.
Attribute segment typeTells the generator which segment (style, material, colour or size) an attribute fills.
Attribute value codeThe characters written into the segment for that value.

How to use it

Add barcodes to an existing catalogue

  1. Set the category and attribute codes described under Configure.
  2. Run the backfill job. It gives a barcode to every variant that has none and leaves correct barcodes untouched.
  3. If generation stops on a conflict, read the error. It names the attribute, the values and the segment that would produce the same code. Change one of the codes and run the job again.
  4. After changing codes, use the rebuild action to regenerate the whole catalogue. It reports how many variants changed.

Create new products and variants

  1. Create the product with its category and attributes as usual.
  2. Each new variant gets its barcode automatically.
  3. Open a variant to see its barcode broken down segment by segment.

Limits

Frequently asked questions

How do I generate barcodes for product variants in Odoo?

Install Product and Variant Barcode Generator, set a code on each product category and on each attribute value, and every new variant gets its barcode automatically. The barcode is built from the category, style, material, colour, size and date segments.

Can I add barcodes to products that already exist in Odoo?

Yes. Product and Variant Barcode Generator runs a bounded background job that gives a barcode to every variant without one. It leaves correct barcodes untouched and is safe to run more than once.

How do I avoid duplicate barcodes in Odoo?

Product and Variant Barcode Generator checks every code across variants and blocks duplicates. The error names the attribute, the values and the segment in conflict, so you know which code to change before a duplicate reaches the warehouse.

What does a generated barcode look like?

It is a fixed 20 character code assembled from category, style, material, colour, size and date segments. Each segment comes from a code you set on the category or attribute value, so staff can read the code.

Does the Barcode Generator work in multi-company databases?

Yes. Product and Variant Barcode Generator respects the active company and its records and has been tested in multi-company databases. English, German and Arabic translations are included.

Can the app print barcode labels?

No. Product and Variant Barcode Generator creates the codes, and printing stays a separate step in your label setup. If you print on Dymo and want labels without a price, the Dymo Labels Without Price app adds that option.