mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[MIG] printer_zpl2: Migration to 13.0
This commit is contained in:
committed by
mreficent
parent
fe3208cd64
commit
4291cca6ca
17
printer_zpl2/readme/CONFIGURE.rst
Normal file
17
printer_zpl2/readme/CONFIGURE.rst
Normal file
@@ -0,0 +1,17 @@
|
||||
To configure this module, you need to:
|
||||
|
||||
#. Go to *Settings > Printing > Labels > ZPL II*
|
||||
#. Create new labels
|
||||
#. Import ZPL2 code
|
||||
#. 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"/>
|
||||
4
printer_zpl2/readme/CONTRIBUTORS.rst
Normal file
4
printer_zpl2/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,4 @@
|
||||
* Sylvain Garancher <sylvain.garancher@syleam.fr>
|
||||
* Florent de Labarre
|
||||
* Jos De Graeve <Jos.DeGraeve@apertoso.be>
|
||||
* Rod Schouteden <rod.schouteden@dynapps.be>
|
||||
5
printer_zpl2/readme/DESCRIPTION.rst
Normal file
5
printer_zpl2/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
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.
|
||||
8
printer_zpl2/readme/HISTORY.rst
Normal file
8
printer_zpl2/readme/HISTORY.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
13.0.1.0.0 (2019-09-30)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [RELEASE] Port from V12.
|
||||
* Selection lists do not support integers any longer
|
||||
* Binary field now returns False when empty instead of none,
|
||||
change tests to reflect this
|
||||
* work around an appels vs oranges warning
|
||||
1
printer_zpl2/readme/INSTALL.rst
Normal file
1
printer_zpl2/readme/INSTALL.rst
Normal file
@@ -0,0 +1 @@
|
||||
Nothing special, just install the module.
|
||||
13
printer_zpl2/readme/USAGE.rst
Normal file
13
printer_zpl2/readme/USAGE.rst
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user