changeset b0a5d11ac400 in trytond:default details: https://hg.tryton.org/trytond?cmd=changeset&node=b0a5d11ac400 description: Pop cache keys from a copy of the context
Otherwise it modifies the context for the all transaction. issue10380 review358061003 diffstat: trytond/cache.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 8ba2630e8589 -r b0a5d11ac400 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