v 9.0 v 10.0 v 11.0 v 12.0 Third Party 1039
Download for v 12.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Community Apps Dependencies
Lines of code 2412
Technical Name printer_zpl2
LicenseAGPL-3
Websitehttp://www.syleam.fr/
Versions 11.0 15.0 9.0 10.0 12.0 13.0 14.0 16.0
You bought this module and need support? Click here!

ZPL II Label printing

This module extends the Report to printer (base_report_to_printer) module to add a ZPL II label printing feature.

This module is meant to be used as a base for module development, and does not provide a GUI on its own. See below for more details.

Installation

Nothing special, just install the module.

Configuration

To configure this module, you need to:

  1. Go to Settings > Printing > Labels > ZPL II
  2. Create new labels
  3. Import ZPL2 code
  4. Use the Test Mode tab during the creation

It's also possible to add a label printing wizard on any model by creating a new ir.actions.act_window record. For example, to add the printing wizard on the product.product model

<act_window id="action_wizard_purchase"
  name="Print Label"
  src_model="product.product"
  res_model="wizard.print.record.label"
  view_mode="form"
  target="new"
  key2="client_action_multi"/>

Usage

To print a label, you need to call use the label printing method from anywhere (other modules, server actions, etc.).

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))

You can also use the generic label printing wizard, if added on some models.

Try me on Runbot

Known issues / Roadmap

  • Develop a "Designer" view in a separate module, to allow drawing labels with simple mouse clicks/drags

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.