<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <report id="report_product_product_label" string="Product Label" model="product.product.label" report_type="qweb-pdf" file="product_label" name="product_labels.product_product_label" /> <record id="report_product_product_label" model="ir.actions.report.xml"> <field name="paperformat_id" ref="product_labels.paperformat_product_label"/> </record> <template id="product_product_label"> <t t-call="report.html_container"> <t t-foreach="docs" t-as="label"> <t t-foreach="label.label_lines" t-as="line"> <t t-foreach="range(int(line.quantity))" t-as="range_line"> <div class="page"> <div class="oe_structure"/> <div class="row"> <table style="width: 100%; border: 1px solid black; text-align: center;"> <tr style="border: 1px solid black;"> <td colspan="2"> <h5><span t-field="line.product_id.name"/></h5> </td> </tr> <!-- <tr style="border: 1px solid black;"> <td colspan="2"> <h4><span>Code: </span><span t-field="line.product_id.default_code" /></h4> </td> </tr> --> <tr style="border: 1px solid black;"> <td colspan="2"> <span t-if="line.product_id.ean13"> <img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', line.product_id.ean13, 600, 100)" style="margin-top: 5px; width:270px; height:20px"/> <h5><span t-esc="line.product_id.ean13" /></h5> </span> </td> </tr> </table> </div> </div> </t> </t> </t> </t> </template> </data> </openerp>