Hello,
I want to display the image of my articles on my labels.
In this file "addons/product/report/product_product_templates.xml" we found how the fields are print, like product name:
<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>
barcode...
<td style="border: 2px solid black;text-align: center; vertical-align: middle;" class="col-xs-5">
<img t-if="product.barcode" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', product.barcode, 600, 150)" style="width:100%;height:20%;"/>
<span t-field="product.barcode"/>
</td>
I want to add the product image, (stores in base64 from jpg in my database) Can I add them by this file, and how?
Thank you.