Skip to Content
Menú
This question has been flagged
1 Respondre
1512 Vistes

Hello Odoo Community,

I am working on adding a custom label for my products, specifically for lot/serial numbers, in Odoo. The goal is to have an individual label size and be able to print it as a ZPL format.

Here is the current setup I have:

  1. I created a new label under Settings → Technical → Reports with the model name stock.lot and the action type ir.actions.report.
  2. The name of my custom template is stock.custom_label_lot_template_view.

Now, I would like to add this custom label to the "Print Label - Lot/Serial Number" option under Manufacturing Orders so that I can print this label directly from the frontend.

My question is:

  • Is this the correct way to approach this, or is there a better method to achieve this integration?
  • How can I ensure that my custom label shows up in the "Print Label" dropdown in the manufacturing order view for lot/serial numbers?

The reason I am not using third-party apps for this is quite simple: none of them are able to generate the GS1 barcode, which is a critical requirement for my product labels.

I would appreciate any insights, suggestions, or guidance from the community on how to proceed.

Thank you in advance!odoo

Avatar
Descartar
Autor

Thanks for your Answer. But also if I change the model name to mrp.production there is no Field to select this custom Label in manufacturing orders.

Best Answer

To print a lot label from manufacturing order you need to set model = mrp.production.
To reference the lot information set fields like: mrp.production.lot_producing_id.name


Tips - perhaps you know already.

Two free tools to work on ZPL label layout:

Get the ZPL programming manual: https://www.zebra.com/gb/en/search.html#q=ZPL%20manual&t=All

Use Labelary viewer to work on changing layout after you have set up the report in Odoo: https://labelary.com/viewer.html

If you have a Zebra printer connected, you can also get the Zebra Essential Designer without a license.  There you can design labels really as wysiwig, and save it as ZPL file (use print to file).  Quick an easy to get the ZPL code correct.  

https://www.zebra.com/us/en/support-downloads/software/printer-software/zebra-designer-3-downloads.html?downloadId=81ad3292-7f21-4dca-bd86-2535cb5c066f

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 15
4669
2
de gen. 24
1558
1
de juny 22
2325
0
de març 15
4411
3
de maig 15
7773