49 lines
2.3 KiB
XML
49 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<template id="report_simple_label">
|
|
<div class="col-xs-4" style="padding:0;">
|
|
<table style="border-spacing:0;margin-bottom:0;height:122px;" class="table">
|
|
<thead>
|
|
<tr style="width: 3in;">
|
|
<td style="border: 2px solid black;width: 2.63in;" colspan="2" class="col-xs-8 danger">
|
|
<t t-if="product.default_code">
|
|
[<strong t-field="product.default_code"/>]
|
|
</t>
|
|
<strong t-field="product.name"/>
|
|
</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr style="width: 1in;">
|
|
<td style="border: 2px solid black;text-align: center; vertical-align: middle;" class="col-xs-5">
|
|
<img t-if="product.barcode and len(product.barcode) == 13" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', product.barcode, 600, 150)" style="width:100%;height:20%;"/>
|
|
<img t-elif="product.barcode and len(product.barcode) == 8" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN8', product.barcode, 600, 150)" style="width:100%;height:20%;"/>
|
|
<img t-else="" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', product.barcode, 600, 150)" style="width:100%;height:20%;"/>
|
|
<span t-field="product.barcode"/>
|
|
</td>
|
|
<td style="border: 2px solid black; text-align: center;" class="col-xs-7">
|
|
<h4>
|
|
<strong t-field="product.company_id.currency_id.symbol"/>
|
|
<strong t-field="product.list_price"/>
|
|
</h4>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="report_productlabel">
|
|
<t t-call="report.html_container">
|
|
<div class="page">
|
|
<t t-foreach="docs" t-as="product">
|
|
<t t-call="product.report_simple_label">
|
|
<t t-set="product" t-value="product"/>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</odoo> |