From efc96ea97ddfa3154ec7a65326e0e578706dc50a Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Sat, 7 Mar 2026 16:28:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_will_task/models/yuthon_will_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index 449d8ee87..b959516d3 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -196,7 +196,8 @@ 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}' - data_date = '开始时间:' + str(task.yuthon_will_task_id.start_date) + ' ' +str(task.yuthon_will_task_id.request_hour_from) + '\n' + request_hour_from = task.yuthon_will_task_id.fields_get(allfields=['request_hour_from'])['request_hour_from']['selection'] + 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' data_employee_id = ('司机:' + ', '.join(will_id.employee_ids2.mapped('name')) + '\n') if will_id.employee_ids2 else ''