changeset 40407306d10f in trytond:5.6
details: https://hg.tryton.org/trytond?cmd=changeset;node=40407306d10f
description:
        Modify a copy of the context when pushing into the queue

        issue9549
        review327901002
        (grafted from 732b6463c6412c8c88d2522f2be0c252bc686510)
diffstat:

 trytond/ir/queue.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bcafd934931c -r 40407306d10f 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
@@ -199,7 +199,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)

Reply via email to