fix: indicator ofor template task
This commit is contained in:
parent
fd5ebe9d4a
commit
2460e101a7
@ -32,12 +32,11 @@ def execute():
|
|||||||
description = task.description,
|
description = task.description,
|
||||||
is_template = 1
|
is_template = 1
|
||||||
)).insert()
|
)).insert()
|
||||||
print(new_task)
|
|
||||||
new_tasks.append(new_task)
|
new_tasks.append(new_task)
|
||||||
|
|
||||||
if replace_tasks:
|
if replace_tasks:
|
||||||
template.tasks = []
|
template.tasks = []
|
||||||
for tsk in new_tasks:
|
for tsk in new_tasks:
|
||||||
print(tsk.name, tsk.subject)
|
|
||||||
template.append("tasks", {
|
template.append("tasks", {
|
||||||
"task": tsk.name,
|
"task": tsk.name,
|
||||||
"subject": tsk.subject
|
"subject": tsk.subject
|
||||||
|
@ -20,7 +20,8 @@ frappe.listview_settings['Task'] = {
|
|||||||
"Pending Review": "orange",
|
"Pending Review": "orange",
|
||||||
"Working": "orange",
|
"Working": "orange",
|
||||||
"Completed": "green",
|
"Completed": "green",
|
||||||
"Cancelled": "dark grey"
|
"Cancelled": "dark grey",
|
||||||
|
"Template": "blue"
|
||||||
}
|
}
|
||||||
return [__(doc.status), colors[doc.status], "status,=," + doc.status];
|
return [__(doc.status), colors[doc.status], "status,=," + doc.status];
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user