Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
2992 Vistas

As the title asks, does Odoo 16 support generation of GS1 barcodes. As it seems to me it does not. It automatically generates Code 128 type of barcode.


I have not found any apps or plugins that would provide this functionality. Maybe I'm missing something.


Is there any setting that will enable GS1 barcode generation?

Avatar
Descartar
Mejor respuesta

Go to inventory settings.  Activate Barcode app. 

Set Default Nomeclature = GS1.

Avatar
Descartar
Autor

If I understand correctly, this just enables Odoo to read and work with GS1 barcodes, but doesn't enable the GS1 code generation within Odoo?

I looked at the code for print Lot numbers PDF - see part of extract below.
It looks to me that i say: If user have Group 'Print GS1 Barcodes for Lot & Serial Numbers' and product barcode is valid GTIN, print GS1 barcode.

t-att-style="barcode_index >= len(page_docs) and 'visibility:hidden'">
<div t-att-style="'position:relative; width:43mm; height:19mm; border: 1px solid %s;' % (o.env.user.company_id.primary_color or 'black')">
<t t-set="final_barcode" t-value="''"/>
<t t-if="env.user.has_group('stock.group_stock_lot_print_gs1')">
<t t-if="o.product_id.valid_ean" t-set="final_barcode" t-value="'01' + '0' * (14 - len(o.product_id.barcode)) + o.product_id.barcode"/>
<t name="gs1_datamatrix_lot" t-if="o.product_id.tracking == 'lot'" t-set="final_barcode" t-value="(final_barcode or '') + '10' + o.name"/>
<t t-elif="o.product_id.tracking == 'serial'" t-set="final_barcode" t-value="(final_barcode or '') + '21' + o.name"/>
</t>
<div class="o_label_4x12" t-field="o.product_id.display_name" t-att-style="'width:22mm' if final_barcode else ''"/>
<div class="o_label_4x12" name="lot_name" t-field="o.name" t-att-style="'width:22mm' if final_barcode else ''"/>
<t t-if="env.user.has_group('stock.group_stock_lot_print_gs1')">
<div t-if="final_barcode" t-att-style="'position:absolute; right:.5px; bottom:.5px'" t-out="final_barcode" t-options="{'widget': 'barcode', 'symbology': 'ECC200DataMatrix', 'img_style': 'width:17mm; height:17mm'}"/>
</t>
<t t-else="">
<div t-field="o.name" t-options="{'widget': 'barcode', 'img_style': 'width:100%; height:35%'}"/>
</t>

Autor Mejor respuesta

...

Avatar
Descartar
Mejor respuesta

You are correct. Odoo 16 itself does not directly generate GS1 barcodes. It focuses on interpreting and using existing GS1 barcodes provided by the user. Here's a breakdown:

  • GS1 Barcodes: These are standardized barcodes used for global supply chain management. They require purchasing a unique Global Trade Item Number (GTIN) from GS1.
  • Odoo Barcode Functionality: Odoo can interpret and utilize information encoded in GS1 barcodes for tasks like warehouse management and product identification. It can also print these barcodes if you provide the GS1 code.
  • Code 128: This is a common barcode type that Odoo can generate automatically. It can encode various data types but is not specifically designed for GS1 standards.

There are currently no built-in settings or official apps in Odoo 16 to directly generate GS1 barcodes. However, you have a few options:

  1. Manual Entry: You can enter the 14-digit GTIN provided by GS1 into the "Barcode" field on the product form in Odoo. This allows Odoo to utilize the information in the GS1 barcode.
  2. Third-party Tools: Explore external barcode generation tools or services that can create GS1 barcodes based on your GTIN. You can then import these generated barcodes into Odoo.
  3. Custom Development: If you have development resources, consider creating a custom Odoo module that interacts with GS1 APIs to generate barcodes based on GTINs.

Here are some additional resources:

While Odoo 16 doesn't natively generate GS1 barcodes, the options above allow you to leverage GS1 functionality within your Odoo system.

Avatar
Descartar
Autor

Appreciate the comprehensive answer. I do have a follow up question.

We have already purchased the GTIN numbers so we have those. We've also added a custom python code for a custom field that combines the GTIN, batch number and best by date and outputs the GS1 code in numerical format (example: 01084759326134821525111910240520). Hence we would just need for the number to be encoded as GS1 barcode too so we can print the labels.

If I understand you correctly, this is impossible in Odoo?

Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 25
621
0
jun 22
2739
1
may 24
1793
4
ene 24
9596
1
ene 25
2379