[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:
Jeremy Kersten 2014-11-13 09:21:46 +01:00
parent 2e604c9d08
commit d978c78246
1 changed files with 1 additions and 0 deletions

View File

@ -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)