From e302482a2ff96016186aff50e26538d59abe69da Mon Sep 17 00:00:00 2001 From: David Date: Thu, 5 Oct 2023 18:15:49 +0200 Subject: [PATCH] [FIX] web_advanced_search: search more filters TT44025 --- .../static/src/js/owl/dropdown.esm.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 web_advanced_search/static/src/js/owl/dropdown.esm.js diff --git a/web_advanced_search/static/src/js/owl/dropdown.esm.js b/web_advanced_search/static/src/js/owl/dropdown.esm.js new file mode 100644 index 000000000..959d270c7 --- /dev/null +++ b/web_advanced_search/static/src/js/owl/dropdown.esm.js @@ -0,0 +1,20 @@ +/** @odoo-module **/ + +import {Dropdown} from "@web/core/dropdown/dropdown"; +import {patch} from "web.utils"; + +patch(Dropdown.prototype, "web.Dropdown", { + /** + * Our many2one widget in the filter menus has a dropdown that propagates some + * custom events through the bus to the search more pop-up. This is not replicable + * in core but we can simply cut it here + * @override + */ + onDropdownStateChanged(args) { + const direct_siblings = args.emitter.el.parentElement === this.el.parentElement; + if (!direct_siblings && args.emitter.myActiveEl !== this.myActiveEl) { + return; + } + return this._super(...arguments); + }, +});