[FIX] website_sale: prevent compute_image on /shop

On /shop, we access the image field to generate the image widget, but we don't
actually need the image content, we just need its url. When `bin_size` is added
we don't compute all the resize for nothing.

opw-1923999
task-1922055
PR: #30274

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Sébastien Theys
2019-02-15 10:17:04 +00:00
parent 15adbcab1b
commit 188ddec890
+1 -1
View File
@@ -230,7 +230,7 @@ class WebsiteSale(ProductConfiguratorController):
if attrib_list:
post['attrib'] = attrib_list
Product = request.env['product.template']
Product = request.env['product.template'].with_context(bin_size=True)
Category = request.env['product.public.category']
search_categories = False