[FIX]: res.config: Fixed problem of passing "user" in the context of action to the client as it gives traceback in client,

so,  after using that res_id from context, we need to remove that from the context

bzr revid: rpa@tinyerp.com-20110630103910-ge5x1o5okreyvnx0
This commit is contained in:
Rucha (Open ERP) 2011-06-30 16:09:10 +05:30
parent 1f51fbda38
commit 249117a25c
1 changed files with 2 additions and 1 deletions

View File

@ -850,7 +850,8 @@ class ir_actions_todo(osv.osv):
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):