Merge PR #1647 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2020-07-23 11:09:13 +00:00

View File

@@ -87,6 +87,19 @@ 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() {
return !($('.o_technical_modal.show').length || $('body.oe_wait').length);
});
},
/**
* @override
*/