Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
21950 Zobrazení

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

Avatar
Zrušit
Autor Nejlepší odpověď

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
Zrušit

Would this apply to ODOO 14 as well?

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

Nejlepší odpověď

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
Zrušit

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

Nejlepší odpověď

How do you send it to the printer?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 23
978
2
dub 25
1148
1
bře 25
1460
1
srp 24
3162
1
úno 25
2918