Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
2 | import frappe | ||||
3 | |||||
4 | from frappe import _ | ||||
5 | |||||
6 | def 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 |