This commit is contained in:
pengyuthon
2026-03-07 16:40:55 +08:00
parent efc96ea97d
commit 7ac83c01da
+1 -1
View File
@@ -196,7 +196,7 @@ class YuthonWillTask(models.Model):
will_id.task_state = 'done'
for employee_id in task.employee_ids:
url = f'https://phone.thtzjt.com/phone/Schedule/{task.yuthon_will_task_id.id}/{employee_id.user_id.id}'
request_hour_from = task.yuthon_will_task_id.fields_get(allfields=['request_hour_from'])['request_hour_from']['selection']
request_hour_from = dict(task.yuthon_will_task_id._fields['request_hour_from'].selection).get(task.yuthon_will_task_id.request_hour_from, '') + '\n'
data_date = '开始时间:' + str(task.yuthon_will_task_id.start_date) + ' ' +str(request_hour_from) + '\n'
data_name = "事项名称: " + task.yuthon_will_task_id.name + '\n'
data_user_ids = '参与人: ' + ', '.join(will_id.employee_ids.mapped('name')) + '\n'