From 7ac83c01dafaf37f64fa9938f5b885a489ca8a17 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Sat, 7 Mar 2026 16:40:55 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index b959516d3..0477bf6e2 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -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'