Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

License: AGPL-3

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

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

<record model="ir.values" id="wizard_wizard_print_product_label">
    <field name="name">Print Product Label</field>
    <field name="key">action</field>
    <field name="key2">client_action_multi</field>
    <field name="model">product.product</field>
    <field name="value" eval="'ir.actions.act_window,' + str(ref('printer_zpl2.action_wizard_print_record_label_view'))"/>
</record>

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

  • Add a button to generate the ir.values for a model

  • 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.

Release files for odoo9-addon-printer-zpl2 9.0.1.0.0.99.dev6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo9-addon-printer-zpl2 9.0.1.0.0.99.dev6
File Interpreter ABI Platform
odoo9_addon_printer_zpl2-9.0.1.0.0.99.dev6-py2-none-any.whl Python 2 none any Details

Release files / odoo9_addon_printer_zpl2-9.0.1.0.0.99.dev6-py2-none-any.whl

Download URL odoo9_addon_printer_zpl2-9.0.1.0.0.99.dev6-py2-none-any.whl
Size 89.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5cf2e4146f8c8927a8d7ce9720e1ed10ed6a545fc6e86d5d40fd1d00f7cc3890
BLAKE2b-256 checksum
How to use checksums
a84b13f16915a93aa7b7eee90c65b6b7f5e3ee0da25fb0ad528bf6e61408ff87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page