From c223b991cee65bdf620b9282345a1fc2570712f5 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 29 Nov 2017 16:18:29 +0100 Subject: [PATCH] [ADD] show a nicer writeup of selected domain --- web_export_view/static/src/js/web_export_view.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web_export_view/static/src/js/web_export_view.js b/web_export_view/static/src/js/web_export_view.js index 8aa0e20b..2439f9e8 100644 --- a/web_export_view/static/src/js/web_export_view.js +++ b/web_export_view/static/src/js/web_export_view.js @@ -77,7 +77,12 @@ openerp.web_export_view = function (instance) { else { deferred = view.dataset.read_slice(export_columns_keys); export_columns_names.push( - String(view.dataset.domain || _('All records')) + _t('Selected records:') + ' ' + + String( + _(view.ViewManager.searchview.query.pluck('values')) + .chain().flatten(true).pluck('label').value() + .join('; ') || _('All records') + ) ); } var x2many = _(export_columns_keys).filter(function(field) {