Bhumi Thakkar (Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-574893-bth into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574893-bth/+merge/110299
Hello,
Try to open Event Dashboard got error "active_id" is not defined.
1. Marketing => Reporting => Event Dashboard.
Observed: Got Error "NameError: name 'active_id' is not defined"
Expected: Display Dashboard of Event
eval_ctx is updated with key value for active_id if not contains active_id key
value in clean_action method.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574893-bth/+merge/110299
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-574893-bth.
=== modified file 'addons/web/controllers/main.py'
--- addons/web/controllers/main.py 2012-06-11 13:18:22 +0000
+++ addons/web/controllers/main.py 2012-06-14 11:19:21 +0000
@@ -684,6 +684,8 @@
if not do_not_eval:
# values come from the server, we can just eval them
if action.get('context') and isinstance(action.get('context'), basestring):
+ if eval_ctx.get('active_id') == None:
+ eval_ctx.update({'active_id': 0})
action['context'] = eval( action['context'], eval_ctx ) or {}
if action.get('domain') and isinstance(action.get('domain'), basestring):
_______________________________________________
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