添加功能

This commit is contained in:
李鹏宇
2026-09-01 17:45:07 +08:00
parent b7b0546f63
commit 87bc485aca
2 changed files with 9 additions and 0 deletions
@@ -22,6 +22,13 @@ class SoongWorkflowRecord(models.Model):
]
return self.search_count(domain)
def get_workflow_circulation(self):
domain = [
('is_circulation', '=', True),
]
return self.search_count(domain)
def get_is_logs2_count(self):
domain = [
('is_log2', '=', True),
+2
View File
@@ -177,6 +177,8 @@ 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'):
badge_count = self.env[res_model].get_workflow_circulation()
elif hasattr(res_model, 'read_number'):
badge_count = self.env[res_model].read_number()
elif hasattr(res_model, 'read_coming_count'):