[Fix] Heatmap issue in the project
This commit is contained in:
parent
b81ece9ddf
commit
f2ccde0454
@ -266,6 +266,7 @@ class Project(Document):
|
|||||||
task_doc.append('depends_on', {"task": dt_name})
|
task_doc.append('depends_on', {"task": dt_name})
|
||||||
task_doc.save()
|
task_doc.save()
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
def get_timeline_data(doctype, name):
|
def get_timeline_data(doctype, name):
|
||||||
'''Return timeline for attendance'''
|
'''Return timeline for attendance'''
|
||||||
return dict(frappe.db.sql('''select unix_timestamp(from_time), count(*)
|
return dict(frappe.db.sql('''select unix_timestamp(from_time), count(*)
|
||||||
|
@ -4,6 +4,7 @@ def get_data():
|
|||||||
return {
|
return {
|
||||||
'heatmap': True,
|
'heatmap': True,
|
||||||
'heatmap_message': _('This is based on the Time Sheets created against this project'),
|
'heatmap_message': _('This is based on the Time Sheets created against this project'),
|
||||||
|
'method' : 'erpnext.projects.doctype.project.project.get_timeline_data',
|
||||||
'fieldname': 'project',
|
'fieldname': 'project',
|
||||||
'transactions': [
|
'transactions': [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user