From f58e4f3f0790d58a1da6a107efa9e619f72d2858 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 30 Oct 2013 20:55:08 +0100 Subject: [PATCH] [FIX] board: filter available dashboards lp bug: https://launchpad.net/bugs/1157896 fixed bzr revid: chs@openerp.com-20131030195508-gw4prkz230m8toma --- addons/board/board.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/board/board.py b/addons/board/board.py index ba5da0db6e1..fafb0eae290 100644 --- a/addons/board/board.py +++ b/addons/board/board.py @@ -3,7 +3,7 @@ # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). -# Copyright (C) 2010-2012 OpenERP s.a. (). +# Copyright (C) 2010-2013 OpenERP s.a. (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -49,6 +49,7 @@ 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]