[FIX] stock_picklist: product image in report

This commit is contained in:
Jared Kipe
2020-10-09 12:58:00 +00:00
parent ec1e5527a7
commit 2592be69d8

View File

@@ -24,8 +24,7 @@
<t t-foreach="docs" t-as="l"> <t t-foreach="docs" t-as="l">
<t t-foreach="l.lines" t-as="p"> <t t-foreach="l.lines" t-as="p">
<tr> <tr>
<td><img t-att-src="p.product_id.image_512 or '/web/static/src/img/placeholder.png'" width="50" height="50"/></td> <td><img t-att-src="image_data_uri(p.product_id.image_128)" width="64" height="64"/></td>
<!-- <td><<img t-att-src="p.product_id.image_64 and ('data:image/png;base64,' + to_text(product_id.image_64)) or '/web/static/src/img/placeholder.png'" width="50" height="50"/></td>-->
<td><span t-esc="p.qty"/></td> <td><span t-esc="p.qty"/></td>
<td> <td>
<span t-if="p.product_id.seller_ids" t-field="p.product_id.seller_ids[0].name" /> - <span t-if="p.product_id.seller_ids" t-field="p.product_id.seller_ids[0].name" /> -
@@ -49,4 +48,4 @@
</t> </t>
</template> </template>
</data> </data>
</odoo> </odoo>