添加功能

This commit is contained in:
李鹏宇
2026-07-16 16:35:08 +08:00
parent 4fa6e810f5
commit 03d7e9909e
2 changed files with 6 additions and 1 deletions
@@ -97,6 +97,8 @@ class SoongWorkflowCommentWizard(models.TransientModel):
self.employee_ids = False
if not self.employee_ids1:
return
if not self.is_selection:
return
filtered_employees = self.employee_ids1
# 范围过滤
if self.scope_type == 'company':
@@ -306,7 +308,9 @@ class SoongWorkflowCommentWizard(models.TransientModel):
if button:
if button.is_node_automatic:
record.is_selection = True
record._onchange_is_selection()
else:
record.is_selection = False
record._onchange_is_selection()
def _send_workflow_notifications(self, partners=None):
""" 通知前端刷新红点、播放音频
+1
View File
@@ -114,6 +114,7 @@ class HrEmployee(models.Model):
"mobile": record.mobile_phone if record.mobile_phone else None,
"phone": record.work_phone if record.work_phone else None,
"create_employee_id": record.id,
"state": "active",
"notification_type": 'inbox',
})
record.user_id = user_obj.id