diff --git a/website_product_attachments/controllers/website_product_attachment.py b/website_product_attachments/controllers/website_product_attachment.py index eeb7c7639..84c9d08b8 100644 --- a/website_product_attachments/controllers/website_product_attachment.py +++ b/website_product_attachments/controllers/website_product_attachment.py @@ -36,7 +36,7 @@ class WebsiteSale(WebsiteSale): def product(self, product, category='', search='', **kwargs): product_context = dict(request.env.context, active_id=product.id) ProductCategory = request.env['product.public.category'] - Rating = request.env['rating.rating'] + Rating = request.env['rating.rating'].sudo() if category: category = ProductCategory.browse(int(category)).exists()