summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data_export.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/data_export.js')
-rw-r--r--addons/web/static/src/js/data_export.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/data_export.js b/addons/web/static/src/js/data_export.js
index f065c996abe..78be735edc7 100644
--- a/addons/web/static/src/js/data_export.js
+++ b/addons/web/static/src/js/data_export.js
@@ -362,7 +362,9 @@ openerp.web.DataExport = openerp.web.Dialog.extend({
return export_field;
},
on_click_export_data: function() {
+ var self = this;
var exported_fields = this.$element.find('#fields_list option').map(function () {
+ var name = self.records[this.value] || this.value
// DOM property is textContent, but IE8 only knows innerText
return {name: this.value,
label: this.textContent || this.innerText};