From 564af16b780c2c96f71f2e1b780f25c07957d18c Mon Sep 17 00:00:00 2001 From: Giovanni Francesco Capalbo Date: Thu, 21 Mar 2024 13:18:07 +0100 Subject: [PATCH 1/2] [FIX] #10392 --- .../static/src/js/control_panel/advanced_select_dialog.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js b/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js index 8226bd416337..bf2e274dd179 100644 --- a/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js +++ b/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js @@ -43,8 +43,16 @@ odoo.define("web_advanced_search.AdvancedSelectDialog", function (require) { } } }, + load_optional_fields: "_onLoadOptionalFields", + save_optional_fields: "_onSaveOptionalFields", } ), + _onLoadOptionalFields: function(ev) { + ev.stopPropagation(); + }, + _onSaveOptionalFields: function(ev) { + ev.stopPropagation(); + }, /** * Fully overide function to just show Select and Use Criteria. */ From 0663b8490f465a27d388bf1d080137b434e3a814 Mon Sep 17 00:00:00 2001 From: Giovanni Francesco Capalbo Date: Thu, 21 Mar 2024 14:57:36 +0100 Subject: [PATCH 2/2] [FIX] lint --- .../static/src/js/control_panel/advanced_select_dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js b/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js index bf2e274dd179..c22c66cb7fe5 100644 --- a/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js +++ b/web_advanced_search/static/src/js/control_panel/advanced_select_dialog.js @@ -47,10 +47,10 @@ odoo.define("web_advanced_search.AdvancedSelectDialog", function (require) { save_optional_fields: "_onSaveOptionalFields", } ), - _onLoadOptionalFields: function(ev) { + _onLoadOptionalFields: function (ev) { ev.stopPropagation(); }, - _onSaveOptionalFields: function(ev) { + _onSaveOptionalFields: function (ev) { ev.stopPropagation(); }, /**