[FIX] website_sale: browse category to slugify. Because slug of an id will generate a tb 'need more than 1 value to unpack'
This commit is contained in:
parent
2e604c9d08
commit
d978c78246
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue