Fix context evaluation with datetime object
This commit is contained in:
1 parent
cda8c614bc
commit
3f6c6727fc
1 file changed
+3
-1
@@ -120,7 +120,9 @@ class Action(object):
|
||||
'active_ids': datas.get('ids',[]),
|
||||
'user': rpc._USER,
|
||||
}
|
||||
ctx.update(eval(action.get('context','{}'), ctx.copy()))
|
||||
eval_ctx = ctx.copy()
|
||||
eval_ctx['datetime'] = datetime
|
||||
ctx.update(eval(action.get('context','{}'), eval_ctx))
|
||||
ctx.update(context)
|
||||
|
||||
domain_context = ctx.copy()
|
||||
|
||||
Reference in new issue
Block a user