diff options
Diffstat (limited to 'addons/stock/report/report_lot_barcode.xml')
| -rw-r--r-- | addons/stock/report/report_lot_barcode.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/addons/stock/report/report_lot_barcode.xml b/addons/stock/report/report_lot_barcode.xml new file mode 100644 index 00000000..722c11ab --- /dev/null +++ b/addons/stock/report/report_lot_barcode.xml @@ -0,0 +1,38 @@ +<?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> |
