Merge pull request #14116 from rohitwaghchaure/project_heatmap_issue
[Fix] Heatmap issue in the project
This commit is contained in:
commit
7c9a6eba3f
@ -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(*)
|
||||
|
@ -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': [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user