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 a7130649cd
commit 8208f878ff

View File

@@ -64,7 +64,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_project_name()