Jagdish Panchal (Open ERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-855343-jap into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #855343 in OpenERP Web: "in project long term, cannot compute scheduler"
  https://bugs.launchpad.net/openerp-web/+bug/855343

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-855343-jap/+merge/76957

Set Active_id for action in main.py 
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-855343-jap/+merge/76957
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-855343-jap.
=== modified file 'addons/web/controllers/main.py'
--- addons/web/controllers/main.py	2011-09-26 10:14:40 +0000
+++ addons/web/controllers/main.py	2011-09-26 10:31:25 +0000
@@ -589,6 +589,7 @@
 
     @openerpweb.jsonrequest
     def action(self, req, menu_id):
+        req.session.context.update({'active_id': menu_id})        
         actions = load_actions_from_ir_values(req,'action', 'tree_but_open',
                                              [('ir.ui.menu', menu_id)], False)
         return {"action": actions}

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to