mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
17 lines
366 B
Python
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
|