Merge PR #1652 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2020-08-12 12:41:02 +00:00

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