summaryrefslogtreecommitdiff
path: root/addons/website_customer/controllers/main.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-05-17 10:01:47 +0200
committerXavier Morel <xmo@odoo.com>2017-07-18 11:49:28 +0200
commit17fe075cda4676cd5e6e3455e610f120d0ddc251 (patch)
tree20ccc95e465ee511e555a3f1265d0014f969b80d /addons/website_customer/controllers/main.py
parentace4ee39e81a6da9e94236b5746f9ee70f8c9b95 (diff)
[FIX] P3: absolute ordering removed
Diffstat (limited to 'addons/website_customer/controllers/main.py')
-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 d6b10b37dc1..e7318a64abf 100644
--- a/addons/website_customer/controllers/main.py
+++ b/addons/website_customer/controllers/main.py
@@ -73,7 +73,7 @@ class WebsiteCustomer(http.Controller):
'country_id_count': 0,
'country_id': (country.id, country.name)
})
- countries.sort(key=lambda d: d['country_id'] and d['country_id'][1])
+ countries.sort(key=lambda d: (d['country_id'] or (0, ""))[1])
countries.insert(0, {
'country_id_count': country_count,