3
0
Fork 0

Merge PR #1682 into 13.0

Signed-off-by pedrobaeza
13.0
OCA-git-bot 2020-10-24 11:22:09 +00:00
commit 3b4670bb04
1 changed files with 17 additions and 0 deletions

View File

@ -76,6 +76,23 @@ odoo.define("web_advanced_search", function(require) {
"click .o_add_advanced_search": "advanced_search_open", "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 * @override
*/ */