From 8bc59fe58fc49cee59fe12b8bdd9daf155e88c81 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Thu, 24 Sep 2015 11:18:25 +0200 Subject: [PATCH] [FIX] website_sale: multiple fixes - fixes product ordering in shop page - fixes "sale" ribbon that was un-removable --- addons/website_sale/controllers/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py index 63e32204c2d..17eed6657dc 100644 --- a/addons/website_sale/controllers/main.py +++ b/addons/website_sale/controllers/main.py @@ -227,7 +227,7 @@ class website_sale(http.Controller): product_count = product_obj.search_count(cr, uid, domain, context=context) 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 asc', 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) attributes_obj = request.registry['product.attribute'] @@ -960,6 +960,7 @@ class website_sale(http.Controller): remove = [] active = False + style_id = int(style_id) for style in product.website_style_ids: if style.id == style_id: remove.append(style.id)