Adds "Best before date" and "Expiration Date" on LN/SN pdf report. Task #1938656
39 lines
1.6 KiB
XML
39 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<template id="report_lot_label">
|
|
<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-8">
|
|
<table class="table table-condensed" style="border-bottom: 0px solid white !important;width: 3in;">
|
|
<tr>
|
|
<th style="text-align: left;">
|
|
<span t-field="o.product_id.display_name"/>
|
|
</th>
|
|
</tr>
|
|
<tr name="lot_name">
|
|
<td>
|
|
<span>LN/SN:</span>
|
|
<span t-field="o.name"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: center; vertical-align: middle;" class="col-5">
|
|
<img t-if="o.name" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 150)" style="width:100%;height:20%;"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</odoo>
|