2016-03-16 12:31:22 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
|
|
|
|
def get_context(context):
|
|
|
|
context.no_cache = 1
|
|
|
|
|
|
|
|
task = frappe.get_doc("Task", frappe.form_dict.task)
|
2021-08-19 08:11:10 +00:00
|
|
|
|
2016-03-16 12:31:22 +00:00
|
|
|
context.comments = frappe.get_all(
|
|
|
|
"Communication",
|
|
|
|
filters={"reference_name": task.name, "comment_type": "comment"},
|
|
|
|
fields=["subject", "sender_full_name", "communication_date"],
|
|
|
|
)
|
2021-08-19 08:11:10 +00:00
|
|
|
|
2016-03-16 12:31:22 +00:00
|
|
|
context.doc = task
|