Improve eval of context in action
This commit is contained in:
1 parent
1e655f593b
commit
d452807dae
1 file changed
+1
-1
@@ -128,7 +128,7 @@ class Action(object):
|
||||
ctx.update(rpc.CONTEXT)
|
||||
eval_ctx = ctx.copy()
|
||||
eval_ctx['datetime'] = datetime
|
||||
ctx.update(eval(action.get('context','{}'), eval_ctx))
|
||||
ctx.update(eval(action.get('context') or '{}', eval_ctx))
|
||||
ctx.update(context)
|
||||
|
||||
domain_context = ctx.copy()
|
||||
|
||||
Reference in new issue
Block a user