summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-10-31 15:37:37 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-10-31 15:37:37 +0530
commit1b3d045ceed3fad80bc5740c41731791ec09b6cd (patch)
tree7392384d3b80df5171b547adf76acd386ffd91e8 /addons/web/controllers/main.py
parent8597e63c29cf64815437aa1fd15604678c2db1b5 (diff)
[FIX] added *.id* field manually.
lp bug: https://launchpad.net/bugs/1071794 fixed bzr revid: vme@tinyerp.com-20121031100737-u0r015etp6jilo80
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 72ffd9567f6..4dabc4c2846 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1767,7 +1767,9 @@ class Export(View):
def fields_info(self, req, model, export_fields):
info = {}
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
# 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