[FIX] ensure Field strings are decoded before comparing them to one another
fixes #773
This commit is contained in:
parent
ec89c9cead
commit
7286f4e424
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue