flectra/addons/stock/report/report_location_barcode.xml

24 lines
993 B
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<data>
<template id="assets_common" name="stock_location_barcodes pdf assets" inherit_id="web.report_assets_common">
<xpath expr="." position="inside">
<link href="/stock/static/src/less/report_location_barcode.less" rel="stylesheet"/>
</xpath>
</template>
<template id="report_location_barcode">
2018-07-06 14:58:06 +02:00
<t t-call="web.html_container">
<div t-foreach="[docs[x:x+4] for x in xrange(0, len(docs), 4)]" t-as="page_docs" class="page article page_stock_location_barcodes">
<t t-foreach="page_docs" t-as="o">
<t t-if="o.barcode"><t t-set="content" t-value="o.barcode"/></t>
<t t-if="not o.barcode"><t t-set="content" t-value="o.name"/></t>
<img class="barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;humanreadable=1' % ('Code128', content, 600, 100)"/>
</t>
</div>
</t>
</template>
</data>
2018-01-16 11:34:37 +01:00
</flectra>