[FIX] ensure Field strings are decoded before comparing them to one another
fixes #773
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user