changeset 6ee56344a23f in trytond:6.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=6ee56344a23f
description:
        Pop cache keys from a copy of the context

        Otherwise it modifies the context for the all transaction.

        issue10380
        review358061003
        (grafted from b0a5d11ac400a8d1381e2950d3362ac3c287b4a0)
diffstat:

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

diffs (12 lines):

diff -r 321488026eba -r 6ee56344a23f trytond/cache.py
--- a/trytond/cache.py  Wed May 05 23:10:30 2021 +0200
+++ b/trytond/cache.py  Wed May 05 23:12:49 2021 +0200
@@ -83,7 +83,7 @@
 
     def _key(self, key):
         if self.context:
-            context = Transaction().context
+            context = Transaction().context.copy()
             context.pop('client', None)
             return (key, Transaction().user, freeze(context))
         return key

Reply via email to