[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user