Skip to Content
Menu
This question has been flagged
1 Reply
1435 Views

I have products with 8 digit barcodes.

When I print a report that shows the barcode, Odoo recognizes the product and increases the quantity when I scan.

When I print a product label, Odoo does nothing when I scan.

Avatar
Discard
Best Answer

The Stock Transfer (ie: Picking) reports in Odoo are hardcoded to print Code128 barcodes, which allow any number of digits.

The Product Label report in Odoo is hardcoded to print EAN13 barcodes, which require 13 digits (or a leading 0 with a 12 digit UPC code).

Create your own Qweb view that inherits the report_simple_label view and change it to use Code128 if you don't have EAN13 / UPC product labels:


<data>
    <img t-if="product.barcode" position="replace">
        <img t-if="product.barcode" 
             t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', product.barcode, 600, 150)" 
style="width:100%;height:20%;"/> </img> </data>

Avatar
Discard