From d6b453a5167ffd3f2a6ee1b8adf8df19212a2c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Dec 2012 22:57:04 +0100 Subject: [PATCH] Fix Cache to use the local thread context --- trytond/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/cache.py b/trytond/cache.py index bb46a8c064..c92b063af2 100644 --- a/trytond/cache.py +++ b/trytond/cache.py @@ -27,7 +27,7 @@ class Cache(object): def _key(self, key): if self.context: - return (key, Transaction().user, repr(Transaction.context)) + return (key, Transaction().user, repr(Transaction().context)) return key def get(self, key, default=None):