3
0
Fork 0

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

12.0
Alexandre D. Díaz 2020-08-03 20:21:55 +02:00
parent 939c300480
commit 1a31f3b603
1 changed files with 4 additions and 3 deletions

View File

@ -88,15 +88,16 @@ 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 () {
this._super.apply(this, arguments);
this.$el.on('hide.bs.dropdown', function() {
return !($('.o_technical_modal.show').length || $('body.oe_wait').length);
var $modal = $('.o_technical_modal.show');
return !(($modal.length && !$modal.has($(this)).length) || $('body.oe_wait').length);
});
},