通知
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user