Browse Source

[FIX] Bug Fixed 'website_product_attachments'

pull/164/head
Ajmal Cybro 4 years ago
parent
commit
0a59dac696
  1. 2
      website_product_attachments/controllers/website_product_attachment.py

2
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()

Loading…
Cancel
Save