From 391b551efbeff4d7e20cf13e5e88e9a53b704a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 5 May 2021 23:12:49 +0200 Subject: [PATCH] Pop cache keys from a copy of the context Otherwise it modifies the context for the all transaction. issue10380 review358061003 (grafted from b0a5d11ac400a8d1381e2950d3362ac3c287b4a0) --HG-- branch : 6.0 --- trytond/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/cache.py b/trytond/cache.py index 07a9bed258..ae1fc3381a 100644 --- a/trytond/cache.py +++ b/trytond/cache.py @@ -83,7 +83,7 @@ class BaseCache(object): 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