1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?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>Precio: </span><span t-field="line.product_id.list_price" /></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, 400, 100)" style="margin-top: 3px; width:70mm; height:25mm"/>
- <h5><span t-esc="line.product_id.ean13" /></h5>
- </span>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </t>
- </t>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|