changeset bfcc5566fb1e in trytond:5.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=bfcc5566fb1e
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 aa90c3015889 -r bfcc5566fb1e trytond/cache.py
--- a/trytond/cache.py Sun Apr 25 17:56:39 2021 +0200
+++ b/trytond/cache.py Wed May 05 23:12:49 2021 +0200
@@ -35,7 +35,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