2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<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">
|
2018-01-16 06:58:15 +01:00
|
|
|
<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&value=%s&width=%s&height=%s&humanreadable=1' % ('Code128', content, 600, 100)"/>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
</data>
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|