mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] Loading shortcuts
This commit is contained in:
@@ -37,8 +37,8 @@ class WebShortcut(models.Model):
|
||||
]
|
||||
|
||||
@api.model
|
||||
def get_user_shortcuts(self, user_id):
|
||||
shortcuts = self.search([('user_id', '=', user_id)])
|
||||
def get_user_shortcuts(self):
|
||||
shortcuts = self.search([('user_id', '=', self.env.user.id)])
|
||||
res = []
|
||||
for shortcut in shortcuts.filtered('menu_id'):
|
||||
_name = shortcut.menu_id.name_get()
|
||||
|
||||
Reference in New Issue
Block a user