summaryrefslogtreecommitdiff
path: root/addons/website_customer/controllers
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2015-01-19 16:16:57 +0100
committerJeremy Kersten <jke@odoo.com>2015-01-19 16:23:30 +0100
commit4a499efcf48bbb84beca5613f51ebf3c3e9f4056 (patch)
treec755ead7b7053369c4a18e8a4986ef367777d54c /addons/website_customer/controllers
parent81588efe2679fb3049dc3a6ba0ffb9b93822976d (diff)
[IMP] website_customer: display filter by tag first, and sort tags by classname before the name.
Diffstat (limited to 'addons/website_customer/controllers')
-rw-r--r--addons/website_customer/controllers/main.py2
1 files changed, 1 insertions, 1 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