[IMP]: ir.actions.todo: minor improvement for dict.get

bzr revid: rpa@tinyerp.com-20110701123719-wuv5bcq1rw3usyrn
This commit is contained in:
Rucha (Open ERP)
2011-07-01 18:07:19 +05:30
parent 0274021306
commit 55385c4ce1
+1 -1
View File
@@ -846,7 +846,7 @@ class ir_actions_todo(osv.osv):
res.update({'nodestroy': True})
# Open Specific resouce when res_id is provided in context
if res.get('context', {}):
if res.get('context'):
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
ctx = eval(res['context'], {'user': user})
if ctx.get('res_id'):