Add rpc context to act_window evaluation of context and domain

This commit is contained in:
Cédric Krier committed 2008-05-22 10:43:04 +02:00
1 parent e5194847b3
commit 5890b91bfd
1 file changed
+1 -1
+1 -1
View File
@@ -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))