添加功能
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user