[FIX] website_sale: don't display twice some products
In list view, the 10 last products of a page were the 10 first products of the next page. Fixes #3373
This commit is contained in:
parent
c846f16e1e
commit
93e4e7da6e
|
@ -184,7 +184,7 @@ class website_sale(http.Controller):
|
|||
if category:
|
||||
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+10, offset=pager['offset'], order='website_published desc, website_sequence desc', context=context)
|
||||
product_ids = product_obj.search(cr, uid, domain, limit=PPG, offset=pager['offset'], order='website_published desc, website_sequence desc', context=context)
|
||||
products = product_obj.browse(cr, uid, product_ids, context=context)
|
||||
|
||||
style_obj = pool['product.style']
|
||||
|
|
Loading…
Reference in New Issue