Merge pull request #14116 from rohitwaghchaure/project_heatmap_issue

[Fix] Heatmap issue in the project
This commit is contained in:
Prateeksha Singh 2018-05-17 15:42:58 +05:30 committed by GitHub
commit 7c9a6eba3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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': [
{