<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.svg">
</a>
<a name="zpl-ii-label"></a>
<h2>ZPL II Label</h2>
<p>This module adds the possibility to define printing labels in the
Zebra Programming Language (ZPL II).</p>
<p>See <a class="reference external" href="https://en.wikipedia.org/wiki/Zebra_(programming_language">https://en.wikipedia.org/wiki/Zebra_(programming_language</a>)</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>
<a name="installation"></a>
<h3>Installation</h3>
<p>Install python module 'zpl2' - <a class="reference external" href="https://pypi.org/project/zpl2">https://pypi.org/project/zpl2</a></p>
<pre>
<code lang="bash">sudo pip install zpl2</code>
</pre>
<a name="configuration"></a>
<h3>Configuration</h3>
<p>To configure this module, you need to:</p>
<ol class="arabic simple">
<li>Go to <em>Settings > Labels > ZPL II Labels</em></li>
<li>Create new labels</li>
<li>Import ZPL2 code</li>
<li>Use the Test Mode tab during the creation</li>
</ol>
<a name="usage"></a>
<h3>Usage</h3>
<p>To render a label, you need to call use the label printing method from
anywhere (other modules, server actions, etc.).</p>
<pre>
<code lang="python"># Example : Render the label of a product
self.env['printing.label.zpl2'].browse(label_id).render_label(
self.env['product.product'].browse(product_id))</code>
</pre>
<a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/144/11.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a>
<a name="known-issues-roadmap"></a>
<h3>Known issues / Roadmap</h3>
<ul class="simple">
<li>Develop a "Designer" view in a separate module, to allow drawing labels
with simple mouse clicks/drags</li>
</ul>
<a name="bug-tracker"></a>
<h3>Bug Tracker</h3>
<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 feedback.</p>
<a name="credits"></a>
<h3>Credits</h3>
<a name="images"></a>
<h4>Images</h4>
<ul class="simple">
<li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li>
</ul>
<a name="contributors"></a>
<h4>Contributors</h4>
<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>Enric Tobella <<a class="reference external" href="mailto:etobella@creublanca.es">etobella@creublanca.es</a>></li>
</ul>
<a name="maintainer"></a>
<h4>Maintainer</h4>
<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>This module is maintained by the OCA.</p>
<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>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>