Se rendre au contenu
Menu
Cette question a été signalée

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

Avatar
Ignorer
Auteur Meilleure réponse

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
Ignorer

Would this apply to ODOO 14 as well?

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

Meilleure réponse

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
Ignorer

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

Meilleure réponse

How do you send it to the printer?

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
juin 23
978
2
avr. 25
1237
1
mars 25
1549
1
août 24
3230
1
févr. 25
2981