From b68ea11ed7a38c89577ddda9f562e07493acaacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 6 Nov 2024 17:57:56 +0100 Subject: [PATCH] Remove unused dashboard cache --- modules/dashboard/ir.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/dashboard/ir.py b/modules/dashboard/ir.py index 91aab50da5..08aba0117a 100644 --- a/modules/dashboard/ir.py +++ b/modules/dashboard/ir.py @@ -4,14 +4,12 @@ import math from lxml import etree -from trytond.cache import Cache from trytond.pool import Pool, PoolMeta from trytond.transaction import Transaction class View(metaclass=PoolMeta): __name__ = 'ir.ui.view' - _dashboard_cache = Cache('ir.ui.view.dashboard_id') @staticmethod def dashboard_id(): @@ -121,9 +119,6 @@ class View(metaclass=PoolMeta): if Transaction().user == 0: return res dashboard_id = cls.dashboard_id() - if not dashboard_id: - # Restart the cache - cls._dashboard_cache.clear() if fields_names is None \ or 'arch' in fields_names: if dashboard_id in ids: