Deep copy the context before modifying in RPC

issue7287
review46271002
This commit is contained in:
Cédric Krier committed 2018-03-30 18:15:04 +02:00
1 parent df4e5f0cb0
commit ef297a8cd1
1 file changed
+3
+3
View File
@@ -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':