[FIX] website_portal_sale: image on a portal SO should always be displayed

before this commit, when a portal SO was done with a product that hasn't been "website_published", a placeholder was displayed instead of the image
After this commit, the correct product image is displayed in base64 (always image_small though)

OPW 760880

Closes #18709
This commit is contained in:
Lucas Perais (lpe)
2017-08-08 10:35:08 +02:00
parent 792a402126
commit ea2568b19c
@@ -250,7 +250,7 @@
<t t-foreach="order.order_line" t-as="ol">
<div class="row orders_vertical_align">
<div class="col-md-1 text-center">
<img t-att-src="'/web/image/product.product/%s/image_small/48x48' % ol.product_id.id"/>
<img t-att-src="ol.product_id.image_small and ('data:image/png;base64,' + ol.product_id.image_small) or '/web/static/src/img/placeholder.png'"/>
</div>
<div id='product_name' class="col-md-5">
<span t-esc="ol.product_id.name"/>