From 642bd015204abfc82bfbbfd53f5af9ce68a61344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 29 Aug 2020 18:26:14 +0200 Subject: [PATCH] Modify a copy of the context when pushing into the queue issue9549 review327901002 --- trytond/ir/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/ir/queue.py b/trytond/ir/queue.py index 36c60be618..8438806228 100644 --- a/trytond/ir/queue.py +++ b/trytond/ir/queue.py @@ -211,7 +211,7 @@ class _Method(object): 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)