From 1af3c41da38a756000f5735898f93aca8b1c560c Mon Sep 17 00:00:00 2001 From: scmmishra Date: Mon, 25 Mar 2019 11:34:33 +0530 Subject: [PATCH] fix: Typo in update_status --- erpnext/projects/doctype/task/task.py | 3 ++- erpnext/projects/doctype/task/test_task.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/projects/doctype/task/task.py b/erpnext/projects/doctype/task/task.py index 221df41a01..4a8d34eaf9 100755 --- a/erpnext/projects/doctype/task/task.py +++ b/erpnext/projects/doctype/task/task.py @@ -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() diff --git a/erpnext/projects/doctype/task/test_task.py b/erpnext/projects/doctype/task/test_task.py index 9971946cb4..32a0340054 100644 --- a/erpnext/projects/doctype/task/test_task.py +++ b/erpnext/projects/doctype/task/test_task.py @@ -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: