Skip to content
DevMarket
Odoo ModulesWordPress PluginsWordPress ThemesShopify ThemesApp TemplatesScripts & UtilitiesBlogSell on DevMarket
ModuleOdooNew

Automated SKU & Barcode Generator for Odoo 19 – Category Prefix, EAN-13 and Variant Codes

Every new product gets a clean SKU (category prefix + sequence) and a valid EAN-13 barcode on save. Variants get their own codes, and one click fills the products that have none.

No reviews yet0 salesby TAQNIXUpdated Oct 23, 2026

Description

Stop typing product codes by hand

Every product needs an SKU that people can read and say, and a barcode that scanners can read. Typing them by hand means gaps, duplicates and “which one did we use last?”.

Automated SKU & Barcode Generator gives every new product both, automatically, the moment you save it.

A new product with SKU and EAN-13 barcode filled in automatically

SKU that makes sense

  • Category prefix + separator + padded number, for example FUR-0042
  • Sub-categories inherit the prefix of their parent and share its counter
  • Prefix, separator and number of digits are settings
  • Set the next number yourself to continue from an old system
Category with an SKU prefix inherited by sub-categories

Valid EAN-13 barcodes

  • 13 digits made of your own prefix, a counter and a valid check digit
  • 200 to 299 are the numbers reserved for internal use, so there is no clash with suppliers' barcodes
  • Or use the SKU as the barcode (Code 128)
Variants with their own SKU and barcode

Variants too

A T-shirt in 2 colours and 3 sizes gives six variants: CLO-0001-RED-M, CLO-0001-BLU-LAR… each with its own barcode. Add a colour later and the new variants get their codes too.

Bulk generation of missing codes

Fill the old catalogue in one click

A button on each product and an action on every product list fill the missing codes: for the selected products, a category or all products, with a preview of the counts first. Codes that exist are never touched.

Features of the SKU and Barcode Generator

Safe

  • Never overwrites a code you typed
  • Never creates a duplicate SKU or barcode: a taken code is skipped, archived products and packagings included
  • Counters are database sequences, safe when many users save at once

Documented and tested

Illustrated documentation in English and Arabic, an Arabic translation of the module and 24 automated tests.

What's included

  • taqnix_sku_barcode_generator.zip: the Odoo 19 module (with Arabic translation)
  • Illustrated documentation in English and Arabic (HTML and PDF)
  • Automated tests, licence file (OPL-1) and changelog

Requirements

Odoo 19.0 with the Products app (installed with Sales, Inventory, Purchase or Point of Sale).

What's in the download

The files in the archive you can download after you buy.

  • Full source code
  • Documentation
  • Installation guide
  • Automated tests
  • Licence file
  • Changelog

Customer reviews

Write a review

No reviews yet. Bought this item? Be the first to review it.

Usage

Install and use it in a few lines.

products = env['product.product'].with_context(tx_skip_codes=True).create(vals_list)
products._tx_assign_codes(force=True)

Documentation

Setup, settings and troubleshooting, written by the author.

Open the documentation

Changelog

Every release, newest first.

v1.0.1

1.0.1 – Bug fix

  • Fixed an error when generating codes for products that have no category

v1.0.0

1.0.0 – Initial release

  • SKU generated on save: category prefix + separator + padded number, one counter per prefix shared by sub-categories
  • EAN-13 barcodes with your own prefix and a valid check digit, or the SKU as the barcode
  • Variant codes with option suffix and their own barcode, also for variants added later
  • Generate Codes button on the product form and a list action with scope and preview
  • Settings per company, duplicate protection for SKU and barcode, Arabic translation, automated tests

Frequently asked questions

Does it change my existing products?

No. Installing changes nothing. New products get codes from then on, and you can fill the old ones with one click, only where the fields are empty.

Will it overwrite codes I typed?

Never. Only empty Reference and Barcode fields are filled.

Can two products get the same SKU or barcode?

No. A code that is already used by any product (archived ones included) or by a packaging is skipped, and the next free one is taken.

Are the barcodes valid EAN-13?

Yes: your prefix (200 to 299 are reserved for internal use), a counter and a calculated check digit. You can also use the SKU as the barcode (Code 128).

How do variants get their codes?

Each variant gets the product's SKU plus the first letters of its options, such as CLO-0001-RED-M, and its own barcode. Variants added later get codes automatically.

Can sub-categories share the prefix of their parent?

Yes. A sub-category without a prefix uses its parent's and shares its counter. Categories with the same prefix share one counter.

Can I continue the numbering of my old system?

Yes. Open the category and set Next number, for example 5000.

Does it support Arabic?

Yes. The module ships an Arabic translation, and the documentation is available in Arabic with right-to-left layout.

More from TAQNIX

  • ModuleNew

    End of Service Benefits (Gratuity) for Odoo 19 Community – Configurable Calculator

    Calculate end-of-service gratuity in Odoo Community with a policy you configure: tiers by years of service, a cap, the share by reason of leaving, unpaid leave, leave pay, and a printable statement.

    by TAQNIX
    No reviews yet
    Sales:0$89.00
  • ModuleNew

    Petty Cash & Expense Vouchers for Odoo 19 Community – Imprest Funds with Approval

    Run petty cash funds in Odoo Community: expense vouchers with receipts and an approval limit, payment with the entry, replenishment up to the float, a cash book and printable vouchers.

    by TAQNIX
    No reviews yet
    Sales:0$79.00
  • ModuleNew

    Employee Custody & Assets for Odoo 19 Community – Handover, Return and Clearance

    Track who holds which company item in Odoo Community: handover and return slips with condition, overdue reminders, a Custody tab and a clearance sheet on the employee.

    by TAQNIX
    No reviews yet
    Sales:0$49.00
  • ModuleNew

    Journal Entries Import from Excel / CSV for Odoo 19 Community – Balance Checked

    Import journal entries from Excel or CSV into Odoo Community: accounts, partners, analytic, each entry checked for balance, drafts or posted, with a history and an undo.

    by TAQNIX
    No reviews yet
    Sales:0$59.00

Similar items

  • ModuleNew

    Inventory Import from Excel / CSV for Odoo 19 Community – Stock Count and Opening Stock

    Load opening stock or a physical count from Excel or CSV into Odoo Community: products by reference, barcode or name, locations, lots and serials, checked row by row before it is applied.

    by TAQNIX
    No reviews yet
    Sales:0$49.00
  • ModuleNew

    RFQ Comparison for Odoo 19 Community – Compare Vendor Quotations and Award

    Compare vendor quotations on one grid in Odoo Community: an RFQ per vendor from one list, the lowest price highlighted, award line by line or to one vendor, with the savings and a comparison sheet.

    by TAQNIX
    No reviews yet
    Sales:0$59.00
  • ModuleNew

    Stock Aging & Dead Stock Report for Odoo 19 – Inventory Age Brackets, FIFO, Value and Slow Movers

    How old is the stock on your shelves? Quantity and value by age bracket, counted first in first out, dead stock flagged, as of any date, in PDF and Excel.

    by TAQNIX
    No reviews yet
    Sales:0$49.00
  • ModuleNew

    Barcode Labels for Products for Odoo 19 – Print Many Labels on A4 Sheets, Any Size

    Print product barcode labels on any sheet of labels: layouts in millimetres, a quantity for each product, a start position on a used sheet, from the list, a product or a receipt.

    by TAQNIX
    No reviews yet
    Sales:0$39.00