summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-11-28 12:05:20 +0100
committerThibault Delavallée <tde@openerp.com>2012-11-28 12:05:20 +0100
commit10ba4e5e606ace471ad8b43e9224c78cfcf033e9 (patch)
tree3a9db6493d64545200aeaf6765314df8a95f6509 /addons/web/controllers/main.py
parent920fd89e05b4b8a1db2019bc644533a088160e15 (diff)
[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
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 517ef242684..7658d3de0b8 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -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