blob: f219c3deb7b5e483ead7db6bd59dc303f978adba [file] [log] [blame]
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +05301from __future__ import unicode_literals
Chillar Anand915b3432021-09-02 16:44:59 +05302
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +05303import frappe
4
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +05305
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