Skip to content
Snippets Groups Projects
Commit d978c782 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website_sale: browse category to slugify. Because slug of an id will...

[FIX] website_sale: browse category to slugify. Because slug of an id will generate a tb 'need more than 1 value to unpack'
parent 2e604c9d
Branches
Tags
No related merge requests found
......@@ -182,6 +182,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)
pager = request.website.pager(url=url, total=product_count, page=page, step=PPG, scope=7, url_args=post)
product_ids = product_obj.search(cr, uid, domain, limit=PPG, offset=pager['offset'], order='website_published desc, website_sequence desc', context=context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment