[FIX] problem in export with ID
bzr revid: nicolas.vanhoren@openerp.com-20121122131517-ys8dkdzfmoa4sgpz
This commit is contained in:
commit
59505d3a5a
|
@ -1752,7 +1752,9 @@ class Export(View):
|
||||||
def fields_info(self, req, model, export_fields):
|
def fields_info(self, req, model, export_fields):
|
||||||
info = {}
|
info = {}
|
||||||
fields = self.fields_get(req, model)
|
fields = self.fields_get(req, model)
|
||||||
|
if ".id" in export_fields:
|
||||||
|
fields['.id'] = fields.pop('id', {'string': 'ID'})
|
||||||
|
|
||||||
# To make fields retrieval more efficient, fetch all sub-fields of a
|
# To make fields retrieval more efficient, fetch all sub-fields of a
|
||||||
# given field at the same time. Because the order in the export list is
|
# given field at the same time. Because the order in the export list is
|
||||||
# arbitrary, this requires ordering all sub-fields of a given field
|
# arbitrary, this requires ordering all sub-fields of a given field
|
||||||
|
|
Loading…
Reference in New Issue