changeset 732b6463c641 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=732b6463c641
description:
Modify a copy of the context when pushing into the queue
issue9549
review327901002
diffstat:
trytond/ir/queue.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 4720f011f266 -r 732b6463c641 trytond/ir/queue.py
--- a/trytond/ir/queue.py Sat Aug 29 18:23:26 2020 +0200
+++ b/trytond/ir/queue.py Sat Aug 29 18:26:14 2020 +0200
@@ -211,7 +211,7 @@
def __call__(self, instances, *args, **kwargs):
transaction = Transaction()
- context = transaction.context
+ context = transaction.context.copy()
name = context.pop('queue_name', 'default')
now = datetime.datetime.now()
scheduled_at = context.pop('queue_scheduled_at', None)