summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-07-16 14:07:43 +0200
committerXavier Morel <xmo@openerp.com>2014-07-16 14:07:43 +0200
commit7286f4e42448bd1487ef329c7ff6c8a212f6a3bd (patch)
treeebbd379013fe11e025f8349f09fcd26dad095f85 /addons
parentec89c9ceadfef666dee018d1d5fbf882f4ca3e18 (diff)
[FIX] ensure Field strings are decoded before comparing them to one another
fixes #773
Diffstat (limited to 'addons')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index b74efc9c452..16c245fc31a 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1330,7 +1330,7 @@ class Export(http.Controller):
fields['.id'] = fields.pop('id', {'string': 'ID'})
fields_sequence = sorted(fields.iteritems(),
- key=lambda field: field[1].get('string', ''))
+ key=lambda field: openerp.tools.ustr(field[1].get('string', '')))
records = []
for field_name, field in fields_sequence: