Author: |
SUBTENO-IT, FLorent de Labarre, Apertoso NV, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
15.0 |
Repository: |
brain-tec/report-print-send |
Dependencies: |
base_report_to_printer |
Languages: |
HTML (396, 3.0%),
PO File (9639, 73.1%),
Python (2620, 19.9%),
XML (419, 3.2%),
and
reStructuredText (113, 0.9%) |
Other branches: |
10.0,
11.0,
11.0-xp,
12.0,
13.0,
14,
14.0,
14.0-ocabot-merge-pr-313-by-sebalix-bump-nobump,
14.0-ocabot-merge-pr-313-by-simahawk-bump-nobump,
15.0.migration_from_ge,
15.0.project_PT_642,
9.0,
and
moylop260-patch-1 |
Other repositories: |
2FM/report-print-send,
ACCOMODATA-BVBA/report-print-send,
AMhadhbi/report-print-send,
Alfa-90/report-print-send,
AliWebkul/report-print-send,
BibekLamichhane/report-print-send,
Change2improve/report-print-send,
ClearCorp/oca-report-print-send,
CompassionCH/report-print-send,
Comunitea/report-print-send,
Dobtor-OCA/report-print-send,
ForgeFlow/report-print-send,
Gabinete-Digital/report-print-send,
Guobower/report-print-send,
Hamza-Talibi/report-print-send,
HomerDeoDatu/report-print-send,
Ingeos/report-print-send,
Jarsa/report-print-send,
JibenCL/report-print-send,
LasLabs/report-print-send,
NeatNerdPrime/report-print-send,
OCA-MUK/report-print-send,
OCA/report-print-send,
QANSEE/report-print-send,
RealSolutionsLux/report-print-send,
SHEFFIELDAFRICA/report-print-send,
SerpentConsultingServices/report-print-send,
SeuMarco/report-print-send,
Style-sen/report-print-send,
Tecnativa/report-print-send,
ThomasBinsfeld/report-print-send,
Vauxoo/report-print-send,
VisiionSolucionesTecnologicas/report-print-send,
aaltinisik/report-print-send,
abaghirli/report-print-send,
abakus-it/report-print-send,
acsone/report-print-send,
adhoc-dev/report-print-send,
agknz/report-print-send,
ahilali/report-print-send,
ajinvn2019/report-print-send,
akretion/report-print-send,
alesisjoan/report-print-send,
alfieqashwa/report-print-send,
amendoncabh/report-print-send,
angelmoya/report-print-send,
anhvu-sg/report-print-send,
antilhue/report-print-send,
apachesep/report-print-send,
apetbiz/report-print-send,
aroodooteam/report-print-send,
aurestic/report-print-send,
blutecsolutions/report-print-send,
bvkl/report-print-send,
camptocamp/report-print-send,
conandark/report-print-send,
connect-to-ak/report-print-send,
damendieta/report-print-send,
daramousk/report-print-send,
dyshrmn/report-print-send,
etobella/report-print-send,
eucedajosue/report-print-send,
fmdl/report-print-send,
gdgellatly/report-print-send,
grindtildeath/report-print-send,
guidev224/report-print-send,
gurneyalex/report-print-send,
guwenfeng/report-print-send,
hammadraza/report-print-send,
haroldtamo/report-print-send,
haryoran04/report-print-send,
iamyeonhan/report-print-send,
igallart/report-print-send,
igh-fp/report-print-send,
isoscl/report-print-send,
jardosa/report-print-send,
jco-subteno-it/report-print-send,
josueBulle/report-print-send,
karizmaconseil/report-print-send-1,
kmee/report-print-send,
lideritjnma/report-print-send,
maniraj89/report-print-send,
markrobinson85/report-print-send,
mikael85/report-print-send,
mohamed-helmy/report-print-send,
mohamedhabibchallouf/report-print-send,
myonnet/oca-report-print-send,
nbessi/report-print-send,
nbornand/report-print-send,
niulinlnc/report-print-send,
noorealam96/report-print-send,
odoonz/report-print-send,
onurugur/report-print-send,
pscloud/report-print-send,
puchisco/report-print-send,
quentingigon/report-print-send,
robertsvx27/report-print-send,
rosenvladimirov/report-print-send,
rosyidridho/report-print-send,
roussel2nis/report-print-send,
rousseldenis/report-print-send,
royalline1/report-print-send,
rudisulistyo/report-print-send,
rven/report-print-send,
sanube/report-print-send,
schout-it/report-print-send,
sebalix/report-print-send,
sematicshood/flectra,
sendalpegat/report-print-send,
sewisoft/report-print-send,
subteno-it/report-print-send,
tegin/report-print-send,
thomasbshop/report-print-send,
ti-ku/report-print-send,
ursais/report-print-send,
vertelab/report-print-send,
vvrossem/report-print-send,
westlyou/report-print-send,
widiana/report-print-send,
x0rzkov/odoo-report-print-send,
xpansa/report-print-send,
xpertiz/report-print-send,
ygdmxy/report-print-send,
zarumaru/report-print-send,
zeroincombenze/report-print-send,
and
zohaibrehman/report-print-send |
<h1 class="title">Printer ZPL II</h1>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/report-print-send/tree/15.0/printer_zpl2"><img alt="OCA/report-print-send" src="https://img.shields.io/badge/github-OCA%2Freport--print--send-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/report-print-send-15-0/report-print-send-15-0-printer_zpl2"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/144/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module extends the <strong>Report to printer</strong> (<code>base_report_to_printer</code>)
module to add a ZPL II label printing feature.</p>
<p>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.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#installation" id="id2">Installation</a></li>
<li><a class="reference internal" href="#configuration" id="id3">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="id4">Usage</a></li>
<li><a class="reference internal" href="#changelog" id="id5">Changelog</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id6">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id7">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id8">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id9">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id10">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="installation"></a>
<h2><a class="toc-backref" href="#id2">Installation</a></h2>
<p>Nothing special, just install the module.</p>
<a name="configuration"></a>
<h2><a class="toc-backref" href="#id3">Configuration</a></h2>
<p>To configure this module, you need to:</p>
<ol class="arabic simple">
<li>Go to <em>Settings > Printing > Labels > ZPL II</em></li>
<li>Create new labels</li>
<li>Import ZPL2 code</li>
<li>Use the Test Mode tab during the creation</li>
</ol>
<p>It's also possible to add a label printing wizard on any model by creating a new <em>ir.actions.act_window</em> record.
For example, to add the printing wizard on the <em>product.product</em> model</p>
<pre>
<code><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"/></code>
</pre>
<a name="usage"></a>
<h2><a class="toc-backref" href="#id4">Usage</a></h2>
<p>To print a label, you need to call use the label printing method from anywhere (other modules, server actions, etc.).</p>
<p>Example : Print the label of a product</p>
<pre>
<code>self.env['printing.label.zpl2'].browse(label_id).print_label(
self.env['printing.printer'].browse(printer_id),
self.env['product.product'].browse(product_id))</code>
</pre>
<p>You can also use the generic label printing wizard, if added on some models.</p>
<a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/144/12.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a>
<a name="changelog"></a>
<h2 class="with-subtitle"><a class="toc-backref" href="#id5">Changelog</a></h2>
<h2 class="section-subtitle" id="id1"><span class="section-subtitle">13.0.1.0.0 (2019-09-30)</span></h2>
<ul class="simple">
<li>[RELEASE] Port from V12.</li>
<li>Selection lists do not support integers any longer</li>
<li>Binary field now returns False when empty instead of none,
change tests to reflect this</li>
<li>work around an appels vs oranges warning</li>
</ul>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id6">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/report-print-send/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/report-print-send/issues/new?body=module:%20printer_zpl2%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id7">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id8">Authors</a></h3>
<ul class="simple">
<li>SUBTENO-IT</li>
<li>FLorent de Labarre</li>
<li>Apertoso NV</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id9">Contributors</a></h3>
<ul class="simple">
<li>Sylvain Garancher <<a class="reference external" href="mailto:sylvain.garancher@syleam.fr">sylvain.garancher@syleam.fr</a>></li>
<li>Florent de Labarre</li>
<li>Jos De Graeve <<a class="reference external" href="mailto:Jos.DeGraeve@apertoso.be">Jos.DeGraeve@apertoso.be</a>></li>
<li>Rod Schouteden <<a class="reference external" href="mailto:rod.schouteden@dynapps.be">rod.schouteden@dynapps.be</a>></li>
<li>Miquel Raïch <<a class="reference external" href="mailto:miquel.raich@forgeflow.com">miquel.raich@forgeflow.com</a>></li>
<li>Lois Rilo <<a class="reference external" href="mailto:lois.rilo@forgeflow.com">lois.rilo@forgeflow.com</a>></li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id10">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/report-print-send/tree/15.0/printer_zpl2">OCA/report-print-send</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>