mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_advanced_search: Prevent the menu from closing when using a relational field
This commit is contained in:
committed by
Ivàn Todorovich
parent
9f56ad7548
commit
7cc6c1ff2c
@@ -76,6 +76,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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user