This commit is contained in:
pengyuthon
2026-04-14 10:06:47 +08:00
parent 3bcbbbf562
commit 98ab67ee35
+2 -2
View File
@@ -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(