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) |
Ankush Menat | 4551d7d | 2021-08-19 13:41:10 +0530 | [diff] [blame] | 10 | |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 11 | context.comments = frappe.get_all('Communication', filters={'reference_name': task.name, 'comment_type': 'comment'}, |
| 12 | fields=['subject', 'sender_full_name', 'communication_date']) |
Ankush Menat | 4551d7d | 2021-08-19 13:41:10 +0530 | [diff] [blame] | 13 | |
| 14 | context.doc = task |