[MERGE] forward port of branch 8.0 up to c92e70b
[odoo/odoo.git] / addons / website_sale / controllers / main.py
index ab50ac8..d776db0 100644 (file)
@@ -179,6 +179,7 @@ class website_sale(http.Controller):
         if search:
             post["search"] = search
         if category:
+            category = pool['product.public.category'].browse(cr, uid, int(category), context=context)
             url = "/shop/category/%s" % slug(category)
 
         style_obj = pool['product.style']