[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:
parent
1f51fbda38
commit
249117a25c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue