diff --git a/erpnext/projects/doctype/project/project.py b/erpnext/projects/doctype/project/project.py index 44b0c00e65..060218d2c9 100644 --- a/erpnext/projects/doctype/project/project.py +++ b/erpnext/projects/doctype/project/project.py @@ -266,6 +266,7 @@ class Project(Document): task_doc.append('depends_on', {"task": dt_name}) task_doc.save() +@frappe.whitelist() def get_timeline_data(doctype, name): '''Return timeline for attendance''' return dict(frappe.db.sql('''select unix_timestamp(from_time), count(*) diff --git a/erpnext/projects/doctype/project/project_dashboard.py b/erpnext/projects/doctype/project/project_dashboard.py index 0ac7d6fc39..be33c9d0b4 100644 --- a/erpnext/projects/doctype/project/project_dashboard.py +++ b/erpnext/projects/doctype/project/project_dashboard.py @@ -4,6 +4,7 @@ def get_data(): return { 'heatmap': True, 'heatmap_message': _('This is based on the Time Sheets created against this project'), + 'method' : 'erpnext.projects.doctype.project.project.get_timeline_data', 'fieldname': 'project', 'transactions': [ {