flectra/addons/stock/report/report_lot_barcode.xml
2018-01-16 02:34:37 -08:00

46 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data>
<template id="report_lot_barcode">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="o">
<t>
<div class="page">
<div class="oe_structure"/>
<div class="row">
<div class="col-xs-8">
<table class="table table-condensed" style="border-bottom: 0px solid white !important;">
<thead>
<tr>
<th>Product</th>
<th>Lot/Serial Number</th>
</tr>
</thead>
<tbody>
<td>
<span t-field="o.product_id.name"/>
</td>
<td>
<span t-field="o.name"/>
</td>
</tbody>
</table>
</div>
<div class="col-xs-4">
<img class="image" t-att-src="'data:image/png;base64,%s' % to_text(res_company.logo)" style="border:auto;"/>
</div>
</div>
<div class="row">
<div class="col-xs-12 mt32">
<table class="table table-condensed" style="border-bottom: 3px solid black !important;"><thead><th> </th></thead></table>
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px"/>
<p class="text-center" t-field="o.name"></p>
</div>
</div>
</div>
</t>
</t>
</t>
</template>
</data>
</flectra>