mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
14 lines
593 B
ReStructuredText
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
|