Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1533 มุมมอง

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

อวตาร
ละทิ้ง
ผู้เขียน

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.

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
4675
2
ม.ค. 24
1570
1
มิ.ย. 22
2329
0
มี.ค. 15
4415
3
พ.ค. 15
7784