[FIX] ensure Field strings are decoded before comparing them to one another

fixes #773
This commit is contained in:
Xavier Morel 2014-07-16 14:07:43 +02:00
parent ec89c9cead
commit 7286f4e424
1 changed files with 1 additions and 1 deletions

View File

@ -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: