[Fix] Heatmap issue in the project

This commit is contained in:
Rohit Waghchaure 2018-05-17 15:40:32 +05:30
parent b81ece9ddf
commit f2ccde0454
2 changed files with 2 additions and 0 deletions

View File

@ -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(*)

View File

@ -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': [
{