Add rpc context to act_window evaluation of context and domain
This commit is contained in:
1 parent
e5194847b3
commit
5890b91bfd
1 file changed
+1
-1
@@ -123,8 +123,8 @@ class Action(object):
|
||||
ctx = {
|
||||
'active_id': datas.get('id',False),
|
||||
'active_ids': datas.get('ids',[]),
|
||||
'user': rpc._USER,
|
||||
}
|
||||
ctx.update(rpc.CONTEXT)
|
||||
eval_ctx = ctx.copy()
|
||||
eval_ctx['datetime'] = datetime
|
||||
ctx.update(eval(action.get('context','{}'), eval_ctx))
|
||||
|
||||
Reference in new issue
Block a user