changeset b009b7d587f5 in trytond:5.8
details: https://hg.tryton.org/trytond?cmd=changeset&node=b009b7d587f5
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 6ea03f6feba7 -r b009b7d587f5 trytond/cache.py
--- a/trytond/cache.py  Tue Apr 27 10:38:24 2021 +0200
+++ b/trytond/cache.py  Wed May 05 23:12:49 2021 +0200
@@ -63,7 +63,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