mirror of https://github.com/OCA/web.git
commit
3b4670bb04
|
@ -76,6 +76,23 @@ odoo.define("web_advanced_search", function(require) {
|
|||
"click .o_add_advanced_search": "advanced_search_open",
|
||||
}),
|
||||
|
||||
/**
|
||||
* Handle dropdown hidden event to prevent the menu from closing when using a
|
||||
* relational field
|
||||
*
|
||||
* @override
|
||||
*/
|
||||
start: function() {
|
||||
this._super.apply(this, arguments);
|
||||
this.$el.on("hide.bs.dropdown", function() {
|
||||
var $modal = $(".o_technical_modal.show");
|
||||
return !(
|
||||
($modal.length && !$modal.has($(this)).length) ||
|
||||
$("body.oe_wait").length
|
||||
);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue