mirror of
https://github.com/NaN-tic/tryton-gtk2.git
synced 2023-12-14 03:12:58 +01:00
Fix context evaluation with datetime object
This commit is contained in:
parent
99132dced2
commit
5bdd2f5fc6
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue