Product Barcode Generator EAN13 Standard with Weight Support
by Ouahda Solutions https://www.sysposapp.com
Odoo
$ 17.57
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 101 |
| Technical Name |
os_product_barcode_weight |
| License | AGPL-3 |
| Website | https://www.sysposapp.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 101 |
| Technical Name |
os_product_barcode_weight |
| License | AGPL-3 |
| Website | https://www.sysposapp.com |
Product EAN13 Generator for Odoo 18
screenshot
banner
Odoo 18
Module type: product utility
This module adds a button on the product form that generates a valid EAN-13 barcode for the product. If the product is configured as a weighing product (i.e. sold by weight), the module will generate a variable/weighted EAN13 that encodes weight information so it can be used with retail scales / POS systems.
Features
- One-click generation of a standard EAN-13 barcode for
product.product/product.template. - Support for weighted/variable EAN13 when the product flag (e.g.
to_weight) is enabled. - Automatic checksum calculation (EAN-13 mod 10 algorithm).
- Safe operation: does not overwrite an existing barcode unless explicit parameter
force=True. - Code examples for Python and XML to easily add a button in the product form.
Installation
- Place the module folder in your
addonspath. - Update Apps list and install the module.
- Open a product and click Generate EAN13.
Usage & Behaviour
On the product form a button named Generate EAN13 will call a server method that:
- Checks if the product already has a barcode (unless
force=True). - If product is
to_weight(or another boolean custom field), it will create a template GTIN and mark it for variable weight usage; the generated barcode format will reserve digits for weight/price depending on your scale convention. - Compute the EAN-13 checksum and write the final 13-digit string to
product.barcode.
Technical details
Models: Adds server method on product.template / product.product.
Please log in to comment on this module