Files
report-print-send/printer_zpl2/readme/USAGE.rst
2023-02-22 15:01:59 +07:00

14 lines
593 B
ReStructuredText

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.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/144/12.0