Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: EAN 13 pattern with barcodes_generator_product

by
Tecnativa. S. L., David Vidal
- 25/10/2023 18:47:54
You don't really need the variable stuff (which is a bit misleading IMO). You should be fine with a pattern like "8069235....." your merchant code + 5 secuential digits (the control digit is generated automatically by the EAN13 rule)

El mié, 25 oct 2023 a las 18:36, Francesco Foresti (<notifications@odoo-community.org>) escribió:
Hi,

I'm trying to use https://github.com/OCA/stock-logistics-barcode/tree/14.0/barcodes_generator_product to generate barcodes using GS1 barcodes purchased by customer. 

I see in the readme the example:

For example, a typical pattern for products is "20.....{NNNDD}" that means that: * the EAN13 code will begin by '20' * followed by 5 digits (named Barcode Base in this module) * and after 5 others digits to define the variable price * a 13 digit control

The pattern I'd like to implement is 8069235 + 5 digits provided by barcode base + 1 check digit. 

How does this translate in the format from the example ("20.....{NNNDD}")? Does any one have any reference guide for this?

Thanks!

--

Francesco Foresti
Sicurpharma Srl

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference