BREAKING: Task status "Closed" renamed to Task status "Completed" and ability to close, cancel projects in bulk

This commit is contained in:
Rushabh Mehta
2019-02-19 14:38:03 +05:30
parent 2d2d176e5c
commit 02a9ec33ed
8 changed files with 1778 additions and 1692 deletions

View File

@@ -29,11 +29,11 @@ def make_timesheet_for_projects(current_date ):
def close_tasks(current_date):
for task in frappe.get_all("Task", ["name"], {"status": "Open", "exp_end_date": ("<", current_date)}):
task = frappe.get_doc("Task", task.name)
task.status = "Closed"
task.status = "Completed"
task.save()
def make_project(current_date):
if not frappe.db.exists('Project',
if not frappe.db.exists('Project',
"New Product Development " + current_date.strftime("%Y-%m-%d")):
project = frappe.get_doc({
"doctype": "Project",