From ae3a0dca96467e7655318d12f3993fe87c58a577 Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Mon, 14 Dec 2020 06:46:59 +0000 Subject: [PATCH] [FIX] web: Select subfields without removing filter text on export What are the steps to reproduce your issue ? 1. Install "contacts" 2. Select list view and select one or more contacts 3. Select "Export" actions What is currently happening ? When filtering fields with text, the system only displays the corresponding fields, but when clicking on sub-field the text written just before is deleted, which prevents us to return to all fields without filter What are you expecting to happen ? Filter fields and select sub-field without deleting the filter text opw-2411928 closes odoo/odoo#63339 X-original-commit: d947ea609b458ddbccabd661c22652d6c86a8167 Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Achraf --- addons/web/static/src/js/widgets/data_export.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/web/static/src/js/widgets/data_export.js b/addons/web/static/src/js/widgets/data_export.js index 85c6886ea0b..f9b793301a6 100644 --- a/addons/web/static/src/js/widgets/data_export.js +++ b/addons/web/static/src/js/widgets/data_export.js @@ -265,7 +265,6 @@ var DataExport = Dialog.extend({ var $el = $(el); $el.find('.o_tree_column').first().toggleClass('o_required', !!self.records[$el.data('id')].required); }); - this.$('#o-export-search-filter').val(''); }, /** * @private @@ -319,7 +318,6 @@ var DataExport = Dialog.extend({ $child.show(); } } - this.$('#o-export-search-filter').val(''); }, /** * Fetches the saved export list for the current model