日程
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user