Explicity copy action context on board action
The context is implicitly copied by or operator when it is evaluated to false, but we should ensure it's always copied as it's updated with action values issue6336 review34771002
This commit is contained in:
1 parent
736cb486f1
commit
dbbeb0ff57
1 file changed
+3
-1
@@ -17,9 +17,11 @@ _ = gettext.gettext
|
||||
class Action(SignalEvent):
|
||||
|
||||
def __init__(self, attrs=None, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
super(Action, self).__init__()
|
||||
self.name = attrs['name']
|
||||
self.context = context or {}
|
||||
self.context = context.copy()
|
||||
|
||||
try:
|
||||
self.action = RPCExecute('model', 'ir.action.act_window', 'get',
|
||||
|
||||
Reference in new issue
Block a user