|
@ -40,8 +40,7 @@ class web_shortcut(models.Model): |
|
|
def get_user_shortcuts(self, user_id): |
|
|
def get_user_shortcuts(self, user_id): |
|
|
shortcuts = self.search([('user_id', '=', user_id)]) |
|
|
shortcuts = self.search([('user_id', '=', user_id)]) |
|
|
res = [] |
|
|
res = [] |
|
|
for shortcut in shortcuts: |
|
|
|
|
|
if shortcut.menu_id: |
|
|
|
|
|
|
|
|
for shortcut in shortcuts.filtered('menu_id'): |
|
|
_name = shortcut.menu_id.name_get() |
|
|
_name = shortcut.menu_id.name_get() |
|
|
_name = _name[0][1] if len(_name) else '' |
|
|
_name = _name[0][1] if len(_name) else '' |
|
|
_id = shortcut.menu_id.id |
|
|
_id = shortcut.menu_id.id |
|
|