I tried to find some in-depth information on how to create a dashboard.py file for doctypes in custom apps. I could find some basic info and youtube videos on this topic. However, no in-depth tutorial.
You can add Linked Documents in custom doctype, the dashboard will be created automatically with links defined.it can be done by dashboard.py but this is possible through GUI
Do you mean the dashboard of the doctype just like the Item doctype dashboard ?
If so, then you could take a look at the Item doctype source . There is a file “item_dashboard.py” there and it’s a kind of definition only and frappe will do the rest as long as the link is correct.
I’ve done this modification many times in doctype dashboard and indeed it’s quite easy.
I think there is no tutorial for this.
All I did was just try to do experiment on the Item doctype dashboard and apply the mechanism on my own doctype.
Item doctype dashboard is a working example how to do this. We just need to define the field and reference to what doctype.