[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:
Jorge 2014-10-30 12:04:42 +01:00 committed by Martin Trigaux
parent c846f16e1e
commit 93e4e7da6e
1 changed files with 1 additions and 1 deletions

View File

@ -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']