fix: indicator ofor template task
This commit is contained in:
parent
fd5ebe9d4a
commit
2460e101a7
@ -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
|
||||
|
@ -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];
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user