From 98ab67ee355c94a4dac9dfae52ea659a47cffde3 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Tue, 14 Apr 2026 10:06:47 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index 9a9b8723a..a91cdfa41 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -133,8 +133,8 @@ class YuthonWillTask(models.Model): def _compute_task_week2(self): weekdays = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"] for record in self: - if record.start_date: - record.task_week2 = weekdays[record.start_date.weekday()] + if record.end_date: + record.task_week2 = weekdays[record.end_date.weekday()] def one_time(self): will_ids = self.env["yuthon.will.task"].browse(