product_print_zpl_barcode: Add support for barcode generation

Add support for EAN-8 (in additional to EAN-13)
This commit is contained in:
Alexis de Lattre
2021-01-22 15:00:14 +01:00
parent 20af679569
commit 5496aa38f8
7 changed files with 140 additions and 14 deletions

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!--
GS1 prefixes : https://www.gs1.org/standards/id-keys/company-prefix
200 - 299 : Used to issue GS1 Restricted Circulation Numbers
within a geographic region (MO defined)
21, 22 and 23 are already used by Odoo for Weight, Price & Discount barcodes
So I use 298 by default
Another option would to be use a small country at the other side of the world,
for example 623 : Brunei
-->
<record id="private_product_barcode_seq" model="ir.sequence">
<field name="name">Private Product Barcode</field>
<field name="code">private.product.barcode</field>
<field name="prefix">298</field>
<field name="padding">9</field>
<field name="number_next">1</field>
<field name="company_id" eval="False"/>
</record>
</data>
</odoo>