blob: 260e2788cd0de377c05db5d10ed850a0d40a244b [file] [log] [blame]
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +05301from __future__ import unicode_literals
2import frappe
3
4from frappe import _
5
6def get_context(context):
7 context.no_cache = 1
8
9 task = frappe.get_doc('Task', frappe.form_dict.task)
Ankush Menat4551d7d2021-08-19 13:41:10 +053010
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053011 context.comments = frappe.get_all('Communication', filters={'reference_name': task.name, 'comment_type': 'comment'},
12 fields=['subject', 'sender_full_name', 'communication_date'])
Ankush Menat4551d7d2021-08-19 13:41:10 +053013
14 context.doc = task