[IMP] web_advanced_search: Don't block modal filter menu

pull/2357/head
Alexandre D. Díaz 2020-08-03 20:21:55 +02:00 committed by Raf Ven
parent 72aa5c2a97
commit bfdc490a07
1 changed files with 9 additions and 5 deletions

View File

@ -77,15 +77,19 @@ odoo.define("web_advanced_search", function(require) {
}),
/**
* Handle dropdown hidden event to prevent the menu from closing when using a
* relational field
* Handle dropdown hidden event to prevent the menu from closing when using a
* relational field
*
* @override
*/
start: function () {
start: function() {
this._super.apply(this, arguments);
this.$el.on('hide.bs.dropdown', function() {
return !($('.o_technical_modal.show').length || $('body.oe_wait').length);
this.$el.on("hide.bs.dropdown", function() {
var $modal = $(".o_technical_modal.show");
return !(
($modal.length && !$modal.has($(this)).length) ||
$("body.oe_wait").length
);
});
},