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
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]
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.