mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_responsive: Filter properly menus on AppDrawer search
The filtering that is done on the menus by upstream doesn't take into account the visibility of their ancestors to decide if the menu is visible or not, which is needed for the AppDrawer menu search. TT45078
This commit is contained in:
@@ -314,6 +314,7 @@ odoo.define('web_responsive', function(require) {
|
||||
this.$searchInput = $('#appDrawerSearchInput').focus();
|
||||
var Menus = new DataModel('ir.ui.menu');
|
||||
Menus.query(['action', 'display_name', 'id'])
|
||||
.context({"responsive_search": true})
|
||||
.filter([['name', 'ilike', this.$searchInput.val()],
|
||||
['action', '!=', false]
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user