Skip to content

Commit

Permalink
[FIX] ir_ui_menu: be sure to only take existing action in order to sh…
Browse files Browse the repository at this point in the history
…ow visible menu
  • Loading branch information
csnauwaert authored and rco-odoo committed Sep 30, 2015
1 parent d5ac2f7 commit f6a2582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/addons/base/ir/ir_ui_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _visible_menu_ids(self, debug=False):
lambda menu: not menu.groups_id or menu.groups_id & groups)

# take apart menus that have an action
action_menus = menus.filtered('action')
action_menus = menus.filtered(lambda m: m.action and m.action.exists())
folder_menus = menus - action_menus
visible = self.browse()

Expand Down

0 comments on commit f6a2582

Please sign in to comment.