添加功能
This commit is contained in:
@@ -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):
|
||||
""" 通知前端刷新红点、播放音频
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user