ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

How I can Create dashboard to new custom doctype

How I can Create dashboard veiw to new custom doctype

Have you tried this, with what result? https://erpnext.com/docs/user/manual/en/customize-erpnext/dashboard

https://docs.erpnext.com/docs/user/manual/en/using-erpnext/dashboard

edit: update link

Thanks @clarkej

I mean dashboard like this in doctype

I wonder what Duplicate does to an existing DocType - that would be worth digging into - search here for pointers and do some trial and error learning?

You have to create a .py file named “your_doctype”_dashboard.py in your doctype folder on the server. With this file you can define how your dashboard should look like

Thanks for the learning joelios - here are lots of cases

frappe@ubuntu:~/frappe-bench$ find . -name '*_dashboard.py'
./apps/erpnext/erpnext/healthcare/doctype/patient_appointment/patient_appointment_dashboard.py
./apps/erpnext/erpnext/healthcare/doctype/inpatient_record/inpatient_record_dashboard.py
./apps/erpnext/erpnext/healthcare/doctype/patient_encounter/patient_encounter_dashboard.py
./apps/erpnext/erpnext/healthcare/doctype/patient/patient_dashboard.py
./apps/erpnext/erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner_dashboard.py
./apps/erpnext/erpnext/projects/doctype/project/project_dashboard.py
[snip]
1 Like

Youre welcome.

Don’t forget, if you want to include a heatmap in the dashboard; the xxx_dashboard.py makes only the heatmap visible, to feed it with data you need a get_timeline_data() function within the “doctype”.py file.

1 Like

thanks Mr @joelios
I did it before asking here but there were no changes
So after that commited my changes and excuted bench update that solved my Issue

Best Regards

Hello!
I have created dashboard according to detail in your given link.
But Now i want this dashboard name to be shown in the sidebar or it will open directly when i logged in. Is there anyway to do that?