From 8276fb585371e78a500d57ff61f23ce10db24e9c Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 13 Aug 2014 14:52:01 +0200 Subject: [FIX] export: add the context in the export In some cases, the data dispalyed in a list depends on the context This context needs to be passed to the export method, so the exported data reflects correctly the data from the list view --- addons/web/static/src/js/data_export.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js/data_export.js') diff --git a/addons/web/static/src/js/data_export.js b/addons/web/static/src/js/data_export.js index 7a57899a963..be8fb9628f1 100644 --- a/addons/web/static/src/js/data_export.js +++ b/addons/web/static/src/js/data_export.js @@ -389,6 +389,7 @@ instance.web.DataExport = instance.web.Dialog.extend({ fields: exported_fields, ids: ids_to_export, domain: this.dataset.domain, + context: this.dataset.context, import_compat: !!this.$el.find("#import_compat").val(), })}, complete: instance.web.unblockUI, -- cgit v1.2.3