From 4a499efcf48bbb84beca5613f51ebf3c3e9f4056 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Mon, 19 Jan 2015 16:16:57 +0100 Subject: [PATCH] [IMP] website_customer: display filter by tag first, and sort tags by classname before the name. --- addons/website_customer/controllers/main.py | 2 +- addons/website_customer/views/website_customer.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/website_customer/controllers/main.py b/addons/website_customer/controllers/main.py index 87cc5211fa5..cc29a0072a6 100644 --- a/addons/website_customer/controllers/main.py +++ b/addons/website_customer/controllers/main.py @@ -88,7 +88,7 @@ class WebsiteCustomer(http.Controller): tag_obj = request.registry['res.partner.tag'] tag_ids = tag_obj.search(cr, uid, [('website_published', '=', True), ('partner_ids', 'in', partner_ids)], - order='name ASC', context=context) + order='classname, name ASC', context=context) tags = tag_obj.browse(cr, uid, tag_ids, context=context) tag = tag_id and tag_obj.browse(cr, uid, tag_id, context=context) or False diff --git a/addons/website_customer/views/website_customer.xml b/addons/website_customer/views/website_customer.xml index d7c16fd8759..26305711ee3 100644 --- a/addons/website_customer/views/website_customer.xml +++ b/addons/website_customer/views/website_customer.xml @@ -90,6 +90,7 @@ + -