fix: show tasks in project order by due date and status

This commit is contained in:
Nabin Hait 2019-05-16 13:42:55 +05:30
parent b90fc7fc0d
commit 2a8c463079

View File

@ -65,7 +65,7 @@ class Project(Document):
'name': ("not in", self.deleted_task_list)
})
return frappe.get_all("Task", "*", filters, order_by="exp_start_date asc")
return frappe.get_all("Task", "*", filters, order_by="exp_start_date asc, status asc")
def validate(self):
self.validate_weights()