fix: indicator ofor template task

This commit is contained in:
pateljannat 2021-01-11 10:05:54 +05:30
parent fd5ebe9d4a
commit 2460e101a7
2 changed files with 3 additions and 3 deletions

View File

@ -32,12 +32,11 @@ def execute():
description = task.description,
is_template = 1
)).insert()
print(new_task)
new_tasks.append(new_task)
if replace_tasks:
template.tasks = []
for tsk in new_tasks:
print(tsk.name, tsk.subject)
template.append("tasks", {
"task": tsk.name,
"subject": tsk.subject

View File

@ -20,7 +20,8 @@ frappe.listview_settings['Task'] = {
"Pending Review": "orange",
"Working": "orange",
"Completed": "green",
"Cancelled": "dark grey"
"Cancelled": "dark grey",
"Template": "blue"
}
return [__(doc.status), colors[doc.status], "status,=," + doc.status];
},