Skip to Content
Menu
This question has been flagged

How to connect your printer + how to modify the ZPL format in order to print labels in the right format

Avatar
Discard
Author Best Answer

In order to be able to print labels in ZPL format, various steps must be followed:

STEP 1: Make sure the printer can read a ZPL file 

1) Connect the printer to your computer and recognize the printer

2) Add 'generic printer' (link with steps to add printer)

3) Rename printer


STEP 2: Configure the format of ZPL label in Odoo

1) If you are in V12 make sure to add the module ZEBRA 

2) Go to views (debug mode) and select following view: label_barcode_product_template_view

3) Change format by testing on http://labelary.com/viewer.html (see additional info on ZPL code below) 

4) Add this view in a studio model so that it can be taken into consideration during migration


Info on ZPL code

^XA

^FO100,50                                                                                                                                                 start of first line (100 pixel from the left, 50 pixels from top)

^A0N,44,33^FD[61461248] 61461248 (T1, Bleu roi)^FS                                                                           0 = type of police

                                                                                                                                                                   44,33 = size of police (44=height, 33=width)

                                                                                                                                                                   ^FD...^FS > Text that will be printed

^FO100,100                                                                                                                                                Start of second line (100 pixel from the left, 100 pixel from the top)


^CI28

^A0N,44,33^FH^FDPrice: 15,90€^FS


^FO100,150^BY3                                                                                                                                        Start of barcode (100 pixel from the left, 150 pixel from the top)

                                                                                                                                                                    BY3 = width of barcode (possibilities between 1 and 10)

^BCN,100,Y,N,N                                                                                                                                         100 = size of barcode

                                                                                                                                                                   

^FD2001510003564^FS                                                                                                                            ^FD...^FS = text


^XZ


Avatar
Discard

Would this apply to ODOO 14 as well?

label_barcode_product_template_view does not show in V14... is ther another view location?

Best Answer

It's not about the modifying ZPL, but you can create your own custom ZPL labels in Odoo via this designer - https://bit.ly/OdooZPL

Avatar
Discard

How di I even install it?

Hello Robin,
the installation process is the same as for any Odoo module.
If you have any questions, drop an email to support@ventor.tech

Best Answer

How do you send it to the printer?

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 23
978
2
Apr 25
206
1
Mar 25
456
1
Aug 24
2422
1
Feb 25
1627