Files
erpnext/erpnext/templates/pages/task_info.py
2026-05-31 14:54:37 +00:00

17 lines
366 B
Python

import frappe
def get_context(context):
context.no_cache = 1
task = frappe.get_doc("Task", frappe.form_dict.task)
task.check_permission()
context.comments = frappe.get_all(
"Comment",
filters={"reference_doctype": "Task", "reference_name": task.name, "comment_type": "Comment"},
fields=["content", "comment_email", "creation"],
)
context.doc = task