fix: Typo in update_status

This commit is contained in:
scmmishra 2019-03-25 11:34:33 +05:30
parent f7f32634c8
commit 1af3c41da3
2 changed files with 3 additions and 2 deletions

View File

@ -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()

View File

@ -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: