From 2f4ce69ab673bd5405d165aeb6190fbb7eca0797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Thu, 16 Jul 2026 11:17:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_notice/models/yuthon_notice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_notice/models/yuthon_notice.py b/yuthon_notice/models/yuthon_notice.py index 77936e581..b93b5d725 100644 --- a/yuthon_notice/models/yuthon_notice.py +++ b/yuthon_notice/models/yuthon_notice.py @@ -197,7 +197,7 @@ class YuthonNotice(models.Model): res = super(YuthonNotice, self).read(fields=fields, load=load) # 如果有记录从 未读 变为 已读,清除菜单缓存并通知前端刷新角标 if changed: - self.env['ir.ui.menu'].load_menus.clear_cache() + self.env.registry.clear_cache() self.env['sun.badge.menu.mixin'].sudo().trigger_menu_reload() return res