diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2017-08-07 13:15:11 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2017-08-08 10:35:08 +0200 |
| commit | ea2568b19c7f94d7ca08487b11ba35cb9974f5e2 (patch) | |
| tree | ce63b9e1c8028aade745c00250177907d76b0e85 | |
| parent | 792a402126b1ea45c8f1f38374a02e7f834fb286 (diff) | |
[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
| -rw-r--r-- | addons/website_portal_sale/views/templates.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_portal_sale/views/templates.xml b/addons/website_portal_sale/views/templates.xml index 04c82fe7f41..73753f682e1 100644 --- a/addons/website_portal_sale/views/templates.xml +++ b/addons/website_portal_sale/views/templates.xml @@ -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"/> |
