[FIX] website_portal: ol.product_id is already sudo

This revision is related to 950d66c086

There is no need to browse the product as `sudo`, this is already
the case, as the template `website_portal.orders_followup` is rendered
with `order` browsed as `sudo` in the qweb context variables.
This commit is contained in:
Denis Ledoux
2015-12-18 12:05:53 +01:00
parent 950d66c086
commit 3ddbb0bd19
+1 -1
View File
@@ -280,7 +280,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="'data:image/png;base64,%s' % ol.product_id.sudo().image_small"/>
<img t-att-src="'data:image/png;base64,%s' % ol.product_id.image_small"/>
</div>
<div id='product_name' class="col-md-5">
<span t-esc="ol.name"/>