fix: Typo in update_status

This commit is contained in:
scmmishra 2019-03-25 11:35:28 +05:30
parent a2e801e840
commit 26e5c753db

View File

@ -169,7 +169,7 @@ class Task(NestedSet):
if self.status not in ('Cancelled', 'Completed') and self.exp_end_date:
from datetime import datetime
if self.exp_end_date < datetime.now().date():
self.date = 'Overdue'
self.status = 'Overdue'
self.save()
@frappe.whitelist()