Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 32 |
Technical Name |
auto_ean13_barcode |
License | LGPL-3 |
Website | https://zadflows.com |
Versions | 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 32 |
Technical Name |
auto_ean13_barcode |
License | LGPL-3 |
Website | https://zadflows.com |
Versions | 17.0 18.0 |

Auto EAN-13 Barcode Generator
Automatically generate valid EAN-13 barcodes for products on creation

Generate on Create
When a product is created without a barcode, a valid EAN-13 is assigned automatically.
GS1 Check Digit
Uses the standard EAN-13 checksum so codes scan correctly in POS & Inventory.
Unique Sequence
Backed by an ir.sequence
with prefix 90 to ensure uniqueness.
Non-intrusive
Wonât overwrite existing barcodes; it only fills when the field is empty.
How it works
- Create a new product (Inventory â Products).
- Leave the Barcode field empty and save.
- The module fetches the next number from
auto_ean13_barcode.seq_product_ean13
, pads to 12 digits (prefix90
+ sequence), calculates the EAN-13 check digit, and writes it tobarcode
. - Use the product in POS/Inventoryâyour barcode is ready to scan.
Compatibility
Odoo Version | Edition | Status |
---|---|---|
18.0 | Community & Enterprise | Supported |
Installation
- Install dependency:
product
(comes with Inventory). - Upload the module folder
auto_ean13_barcode
to your addons path. - Update Apps list and install.
Configuration (optional)
The default sequence is created as Product EAN-13
with:
- Prefix:
90
- Padding:
10
(so prefix + padding â 12 digits base) - Next number:
1000
- Increment:
1
You may adjust the sequence (Settings â Technical â Sequences) to fit your internal numbering policy.
- Generated EAN-13 codes are technically valid and unique in your database, but not GS1-registered. For retail that requires GS1 prefixes, obtain official ranges from your local GS1 member organization.
- The module sets the barcode on
product.template
at creation time. Existing products are unaffected unless edited and saved with an empty barcode.
FAQ
Will it overwrite barcodes I already have?
No. If a value is present in the barcode
field, the module does nothing.
Does it work with POS and Inventory?
Yes. Barcodes are standard EAN-13 and work out-of-the-box with Odooâs POS and Inventory flows.
Can I change the numbering range?
Yes. Edit the Product EAN-13 sequence (prefix, padding, next number) under Technical â Sequences.
Support
Need help or a customization? Contact ZAD FLOWS.
Please log in to comment on this module