@@ -17,22 +17,23 @@ Printer ZPL II
17
17
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
18
:alt: License: AGPL-3
19
19
.. |badge3 | image :: https://img.shields.io/badge/github-OCA%2Freport--print--send-lightgray.png?logo=github
20
- :target: https://github.com/OCA/report-print-send/tree/16 .0/printer_zpl2
20
+ :target: https://github.com/OCA/report-print-send/tree/17 .0/printer_zpl2
21
21
:alt: OCA/report-print-send
22
22
.. |badge4 | image :: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
- :target: https://translation.odoo-community.org/projects/report-print-send-16 -0/report-print-send-16 -0-printer_zpl2
23
+ :target: https://translation.odoo-community.org/projects/report-print-send-17 -0/report-print-send-17 -0-printer_zpl2
24
24
:alt: Translate me on Weblate
25
25
.. |badge5 | image :: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
- :target: https://runboat.odoo-community.org/builds?repo=OCA/report-print-send&target_branch=16 .0
26
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/report-print-send&target_branch=17 .0
27
27
:alt: Try me on Runboat
28
28
29
29
|badge1 | |badge2 | |badge3 | |badge4 | |badge5 |
30
30
31
- This module extends the **Report to printer ** (``base_report_to_printer ``)
32
- module to add a ZPL II label printing feature.
31
+ This module extends the **Report to printer **
32
+ (``base_report_to_printer ``) module to add a ZPL II label printing
33
+ feature.
33
34
34
- This module is meant to be used as a base for module development, and does not provide a GUI on its own.
35
- See below for more details.
35
+ This module is meant to be used as a base for module development, and
36
+ does not provide a GUI on its own. See below for more details.
36
37
37
38
**Table of contents **
38
39
@@ -49,84 +50,92 @@ Configuration
49
50
50
51
To configure this module, you need to:
51
52
52
- # . Go to *Settings > Printing > Labels > ZPL II *
53
- # . Create new labels
54
- # . Import ZPL2 code
55
- # . Use the Test Mode tab during the creation
53
+ 1 . Go to *Settings > Printing > Labels > ZPL II *
54
+ 2 . Create new labels
55
+ 3 . Import ZPL2 code
56
+ 4 . Use the Test Mode tab during the creation
56
57
57
- It's also possible to add a label printing wizard on any model by creating a new *ir.actions.act_window * record.
58
- For example, to add the printing wizard on the *product.product * model ::
58
+ It's also possible to add a label printing wizard on any model by
59
+ creating a new *ir.actions.act_window * record. For example, to add the
60
+ printing wizard on the *product.product * model :
59
61
60
- <act_window id="action_wizard_purchase"
61
- name="Print Label"
62
- src_model="product.product"
63
- res_model="wizard.print.record.label"
64
- view_mode="form"
65
- target="new"
66
- key2="client_action_multi"/>
62
+ ::
63
+
64
+ <act_window id="action_wizard_purchase"
65
+ name="Print Label"
66
+ src_model="product.product"
67
+ res_model="wizard.print.record.label"
68
+ view_mode="form"
69
+ target="new"
70
+ key2="client_action_multi"/>
67
71
68
72
Usage
69
73
=====
70
74
71
- To print a label, you need to call use the label printing method from anywhere (other modules, server actions, etc.).
75
+ To print a label, you need to call use the label printing method from
76
+ anywhere (other modules, server actions, etc.).
77
+
78
+ Example : Print the label of a product :
79
+
80
+ ::
72
81
73
- Example : Print the label of a product ::
82
+ self.env['printing.label.zpl2'].browse(label_id).print_label(
83
+ self.env['printing.printer'].browse(printer_id),
84
+ self.env['product.product'].browse(product_id))
74
85
75
- self.env['printing.label.zpl2'].browse(label_id).print_label(
76
- self.env['printing.printer'].browse(printer_id),
77
- self.env['product.product'].browse(product_id))
86
+ You can also use the generic label printing wizard, if added on some
87
+ models.
78
88
79
- You can also use the generic label printing wizard, if added on some models.
89
+ | Try me on Runbot |
80
90
81
- .. image :: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
82
- :alt: Try me on Runbot
91
+ .. |Try me on Runbot | image :: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
83
92
:target: https://runbot.odoo-community.org/runbot/144/12.0
84
93
85
94
Changelog
86
95
=========
87
96
88
97
13.0.1.0.0 (2019-09-30)
89
- ~~~~~~~~~~~~~~~~~~~~~~~
98
+ -----------------------
90
99
91
- * [RELEASE] Port from V12.
92
- * Selection lists do not support integers any longer
93
- * Binary field now returns False when empty instead of none,
94
- change tests to reflect this
95
- * work around an appels vs oranges warning
100
+ - [RELEASE] Port from V12.
101
+ - Selection lists do not support integers any longer
102
+ - Binary field now returns False when empty instead of none, change
103
+ tests to reflect this
104
+ - work around an appels vs oranges warning
96
105
97
106
Bug Tracker
98
107
===========
99
108
100
109
Bugs are tracked on `GitHub Issues <https://github.com/OCA/report-print-send/issues >`_.
101
110
In case of trouble, please check there if your issue has already been reported.
102
111
If you spotted it first, help us to smash it by providing a detailed and welcomed
103
- `feedback <https://github.com/OCA/report-print-send/issues/new?body=module:%20printer_zpl2%0Aversion:%2016 .0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
112
+ `feedback <https://github.com/OCA/report-print-send/issues/new?body=module:%20printer_zpl2%0Aversion:%2017 .0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
104
113
105
114
Do not contact contributors directly about support or help with technical issues.
106
115
107
116
Credits
108
117
=======
109
118
110
119
Authors
111
- ~~~~~~~
120
+ -------
112
121
113
122
* SUBTENO-IT
114
123
* FLorent de Labarre
115
124
* Apertoso NV
116
125
117
126
Contributors
118
- ~~~~~~~~~~~~
127
+ ------------
119
128
120
- * Sylvain Garancher <
[email protected] >
121
- * Florent de Labarre
122
- * Jos De Graeve <
[email protected] >
123
- * Rod Schouteden <
[email protected] >
124
- * Miquel Raïch <
[email protected] >
125
-
126
- * Tran Quoc Duong <
[email protected] >
129
+ - Sylvain Garancher <
[email protected] >
130
+ - Florent de Labarre
131
+ - Jos De Graeve <
[email protected] >
132
+ - Rod Schouteden <
[email protected] >
133
+ - Miquel Raïch <
[email protected] >
134
+
135
+ - Tran Quoc Duong <
[email protected] >
127
136
128
137
Maintainers
129
- ~~~~~~~~~~~
138
+ -----------
130
139
131
140
This module is maintained by the OCA.
132
141
@@ -138,6 +147,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
138
147
mission is to support the collaborative development of Odoo features and
139
148
promote its widespread use.
140
149
141
- This module is part of the `OCA/report-print-send <https://github.com/OCA/report-print-send/tree/16 .0/printer_zpl2 >`_ project on GitHub.
150
+ This module is part of the `OCA/report-print-send <https://github.com/OCA/report-print-send/tree/17 .0/printer_zpl2 >`_ project on GitHub.
142
151
143
152
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
0 commit comments