Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1709 Widoki

I came across what appears to be a bug with Odoo 16 when printing labels on barcodes for Purchase Orders.


Setup:

  • Settings / Traceability / Lots & Serial Numbers
    • Print GS1 Barcodes for lots is DISABLED
  • Create a product with a bar code number and requires lot numbers.
  • Create a PO for that product and receive the order.
  • Add a lot number - do not validate. 
  • Print the labels.

 The barcode represents the value of the the lot number and not the product's barcode number.


I noticed when lots are used the barcode text value under the barcode is overridden.


Problem exists for all out of the box labels:

  • Dymo 2 x 7 with price 
  • 4 x 7 with price 
  • 4 x 12 
  • 4 x 12 with price 
  • ZPL Labels 
  • ZPL Labels with price


I checked on other test servers for used for addon demos by various vendors and the problem exists.


Awatar
Odrzuć
Autor Najlepsza odpowiedź

Is this something that is just a configuration issue on my part?


Tracking down the 4x7 with Price label in  Views / report_simple_label2x7:

  • ~ /web#id=864&menu_id=4&cids=1&action=29&model=ir.ui.view&view_type=form


Look for this line:

div t-out="barcode" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': barcode_size}"/>


Updated to:


div t-out="product.barcode" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': barcode_size}"/>


!-- Since barcode value writes lot number if exists, explicitly adding human readable barcode value --> 


span class="text-center" t-out="product.barcode"/>
br/> span class="text-center" t-out="barcode"/>



Somewhere in the code it reuses "barcode" as the lot number if used, so there isn't an option to print both the barcode number and lot number  This changes that for this one label.  

Looking for a cleaner solution.


Upon further testing, doesn't work when combining products that require lot numbers and those without on the same PO.  The ones with lot numbers, barcodes print, but the barcode number is duplicated.







Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
4854
1
kwi 15
4381
2
lut 25
7741
2
maj 24
3383
2
mar 23
8472