3
0
Fork 0

[FIX] web_advanced_search: search more filters

TT44025
15.0-ocabot-merge-pr-2789-by-pedrobaeza-bump-patch
David 2023-10-05 18:15:49 +02:00
parent db87b3bc41
commit e302482a2f
1 changed files with 20 additions and 0 deletions

View File

@ -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);
},
});