fix: Typo in update_status
This commit is contained in:
parent
f7f32634c8
commit
1af3c41da3
@ -163,7 +163,8 @@ class Task(NestedSet):
|
||||
if self.status not in ('Cancelled', 'Closed') and self.exp_end_date:
|
||||
from datetime import datetime
|
||||
if self.exp_end_date < datetime.now().date():
|
||||
self.date = 'Overdue'
|
||||
print(self.subject)
|
||||
self.status = 'Overdue'
|
||||
self.save()
|
||||
|
||||
@frappe.whitelist()
|
||||
|
@ -104,7 +104,7 @@ def create_task(subject, start=None, end=None, depends_on=None, project=None, sa
|
||||
task.subject = subject
|
||||
task.exp_start_date = start or nowdate()
|
||||
task.exp_end_date = end or nowdate()
|
||||
task.project = project or "_Test Project"
|
||||
# task.project = project or "_Test Project"
|
||||
if save:
|
||||
task.save()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user