[IMP] board: do not filter actions anymore
authorRichard Mathot <rim@openerp.com>
Thu, 21 Aug 2014 07:56:56 +0000 (09:56 +0200)
committerRichard Mathot <rim@openerp.com>
Thu, 21 Aug 2014 09:20:09 +0000 (11:20 +0200)
Starting from v8.0, there's only "My Dashboard". We can assume that we
have access rights to all the actions we pin to our proper dashboard, so
we can remove this filtering. Furthermore, this was a large performance
pitfall.

addons/board/board.py

index e1c59ce..7f867fa 100644 (file)
@@ -49,7 +49,6 @@ class board_board(osv.osv):
             ('value', 'in', refs),
         ], context=context)
         menu_ids = map(itemgetter('res_id'), IrValues.read(cr, uid, irv_ids, ['res_id'], context=context))
-        menu_ids = Menus._filter_visible_menus(cr, uid, menu_ids, context=context)
         menu_names = Menus.name_get(cr, uid, menu_ids, context=context)
         return [dict(id=m[0], name=m[1]) for m in menu_names]