Deep copy the context before modifying in RPC
issue7287 review46271002
This commit is contained in:
1 parent
df4e5f0cb0
commit
ef297a8cd1
1 file changed
+3
@@ -1,5 +1,7 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import copy
|
||||
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
__all__ = ['RPC']
|
||||
@@ -34,6 +36,7 @@ class RPC(object):
|
||||
context = kwargs.pop('context')
|
||||
else:
|
||||
context = args.pop()
|
||||
context = copy.deepcopy(context)
|
||||
timestamp = None
|
||||
for key in context.keys():
|
||||
if key == '_timestamp':
|
||||
|
||||
Reference in new issue
Block a user