Rucha (Open ERP) has proposed merging
lp:~openerp-dev/openobject-server/trunk-configuration-rework-action-context-rpa
into lp:~openerp-dev/openobject-server/trunk-configuration-rework.
Requested reviews:
qdp (OpenERP) (qdp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-configuration-rework-action-context-rpa/+merge/66431
Fixed problem of passing "user" in the context of action to the client as it
gives traceback in client, so, after using the res_id from context,removed
that from the context
--
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-configuration-rework-action-context-rpa/+merge/66431
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/trunk-configuration-rework.
=== modified file 'openerp/addons/base/ir/ir_actions.py'
--- openerp/addons/base/ir/ir_actions.py 2011-06-28 11:58:55 +0000
+++ openerp/addons/base/ir/ir_actions.py 2011-06-30 10:49:25 +0000
@@ -850,7 +850,8 @@
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
ctx = eval(res['context'], {'user': user})
if ctx.get('res_id'):
- res.update({'res_id': ctx.get('res_id')})
+ res.update({'res_id': ctx.pop('res_id')})
+ res.update({'context': ctx})
return res
def action_open(self, cr, uid, ids, context=None):
_______________________________________________
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