rework design of report_sales

develop
Andreas Osim 2020-05-14 15:02:38 +02:00
parent e7f9d4b22f
commit b2cc172a3b
1 changed files with 2 additions and 2 deletions

View File

@ -233,9 +233,9 @@
<tr>
<td colspan="4" style="border: 0;text-align: center;">
<img t-if="order_line.lot_id.image_medium"
t-att-src="'data:image/png;base64,%s' % order_line.lot_id.image_medium.decode()" style="max-width: 128px;"/>
t-att-src="'data:image/png;base64,%s' % order_line.lot_id.image_medium.decode()" style="max-width: 120px;"/>
<img t-if="not order_line.lot_id.image_medium and order_line.product_id.image_medium"
t-att-src="'data:image/png;base64,%s' % order_line.product_id.image_medium.decode()" style="max-width: 128px;"/>
t-att-src="'data:image/png;base64,%s' % order_line.product_id.image_medium.decode()" style="max-width: 120px;"/>
</td>
</tr>
</t>