From 0601bf63cfa462688b80f26eea4a11fdceeb2c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 15 Jun 2020 14:13:29 +0200 Subject: [PATCH] Delete cache content instead of setting empty dictionary Since issue9369, the cache uses a dedicated class instead of dictionary. So to clear the cache, we must delete the key. --- trytond/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/convert.py b/trytond/convert.py index 601b6f665f..4841ef1c50 100644 --- a/trytond/convert.py +++ b/trytond/convert.py @@ -371,7 +371,7 @@ class Fs2bdAccessor: cache, cache.get('_language_cache', {}).values()): if (model_name in cache and model.id in cache[model_name]): - cache[model_name][model.id] = {} + del cache[model_name][model.id] self.browserecord[module][model_name][model.id] = model def fetch_new_module(self, module):