mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
* chore: Added isort to pre-commit config * chore: Sort imports with isort * chore: Remove imports with pycln * chore: Sort imports with isort * chore: Fix import issues * chore: Fix sider issues * chore: linting * chore: linting / sorting import from ecommerce refactor merge * ci: dont allow unused imports * chore: sort / clean ecommerce imports Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
15 lines
363 B
Python
15 lines
363 B
Python
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
def get_context(context):
|
|
context.no_cache = 1
|
|
|
|
task = frappe.get_doc('Task', frappe.form_dict.task)
|
|
|
|
context.comments = frappe.get_all('Communication', filters={'reference_name': task.name, 'comment_type': 'comment'},
|
|
fields=['subject', 'sender_full_name', 'communication_date'])
|
|
|
|
context.doc = task
|