[IMP] [TMP] controller: search for all menus to have their needaction info, because currently needaction_enabled is not searchable (non stored function field). Revert this revision when the column is back as stored.
bzr revid: tde@openerp.com-20121128110520-wijh1sr5qvsch7b8
This commit is contained in:
@@ -1117,7 +1117,9 @@ class Menu(openerpweb.Controller):
|
||||
Menus = req.session.model('ir.ui.menu')
|
||||
|
||||
if menu_ids == False:
|
||||
menu_ids = Menus.search([('needaction_enabled', '=', True)], context=context)
|
||||
menu_ids = Menus.search([], context=context)
|
||||
# TDE FIXME: set needaction_enabled column to store, to enable this more limited search
|
||||
# menu_ids = Menus.search([('needaction_enabled', '=', True)], context=context)
|
||||
|
||||
menu_needaction_data = Menus.get_needaction_data(menu_ids, context)
|
||||
return menu_needaction_data
|
||||
|
||||
Reference in New Issue
Block a user