3
0
Fork 0

[IMP] web_advanced_search: Prevent the menu from closing when using a relational field

13.0
Alexandre D. Díaz 2020-07-22 18:57:05 +02:00 committed by Radovan Skolnik
parent 86d0a00d2b
commit 1a5dc88c3c
1 changed files with 13 additions and 0 deletions

View File

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