blob: b832b88048bc6f2a8accfacae6c8f9e1203a4e10 [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)
10
11 context.comments = frappe.get_all('Communication', filters={'reference_name': task.name, 'comment_type': 'comment'},
12 fields=['subject', 'sender_full_name', 'communication_date'])
13
14 context.doc = task