We are not able to print Barcode Product Labels to GC420T. Details are below
Version - Odoo 11.Ubuntu 18.04. Installed module -base_report_to_printer,printer_zpl2 and CUPS. We are able to print to Barcode to Inkjet through CUPS but not able to print to Zebra Zpl2.
Tried below config
- Go to Settings > Printing > Labels > ZPL II
- Create new labels
- Product template label changed to Zebra printer
- Report Type PDF
Output Result
Event reaching the printer but coming blank
Its not clear in the doc how the below step will be executed
- Import ZPL2 code. (Do we really required this step )
- Change the ReportType from PDF to Text/ZPL
Dear Ayman,
Thanks for the reply. Please confirm how below can be added in product.template. This will solve the issue I can send ZPL2 to the printer
# Example : Print the label of a product
self.env['printing.label.zpl2'].browse(label_id).print_label(
self.env['printing.printer'].browse(printer_id),
self.env['product.product'].browse(product_id))