添加功能

This commit is contained in:
李鹏宇
2026-09-01 17:45:23 +08:00
parent 87bc485aca
commit 391b3fbda4
+1 -1
View File
@@ -177,7 +177,7 @@ class IrUiMenu(models.Model):
badge_count = self.env[res_model].get_no_read_count()
elif hasattr(self.env[res_model], 'get_workflow_count'):
badge_count = self.env[res_model].get_workflow_count()
elif hasattr(self.env[res_model], 'get_workflow_count'):
elif hasattr(self.env[res_model], 'get_workflow_circulation'):
badge_count = self.env[res_model].get_workflow_circulation()
elif hasattr(res_model, 'read_number'):
badge_count = self.env[res_model].read_number()