summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-01-23 14:33:53 +0100
committerChristophe Simonis <chs@odoo.com>2017-01-23 14:33:53 +0100
commit6c4389df41fb29f9707b205a8dcca13b3bf8a322 (patch)
treeb06358fdcff3268574c9ccda8cb36d9f94eb09dd /addons/web/controllers/main.py
parent255de893300d73670a15a102e85162ae48084d7c (diff)
parent6804085b8ceb1411a23db65477f84a959f8c5bf7 (diff)
[MERGE] forward port branch 10.0 up to 6804085b8ce
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 930a8233eb5..866241fe4f4 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1214,7 +1214,7 @@ class Export(http.Controller):
info = {}
fields = self.fields_get(model)
if ".id" in export_fields:
- fields['.id'] = fields.pop('id', {'string': 'ID'})
+ fields['.id'] = fields.get('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