diff options
| author | Xavier Morel <xmo@openerp.com> | 2014-07-16 14:07:43 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2014-07-16 14:07:43 +0200 |
| commit | 7286f4e42448bd1487ef329c7ff6c8a212f6a3bd (patch) | |
| tree | ebbd379013fe11e025f8349f09fcd26dad095f85 /addons | |
| parent | ec89c9ceadfef666dee018d1d5fbf882f4ca3e18 (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.py | 2 |
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: |
