How to set tree view as default

Hi ,

For docs that are trees, is there any way to set the tree view as default instead of list ?

Cheers

2 Likes

Hi,
Were you able to achieve it.

@wale, just put in ur hooks.py

treeviews = ['your doctype']

1 Like

@PHF, any idea about how to change the default view of Shift Assignment to Report view?

I don’t know, I’ve never had to do that, you can look in frappe/boot.py “treeviews” is loaded there, but I can’t find anything about report.

Thanks @PHF, will give this a try. Was hoping it could be achieved from the client side though… via client or server scripts

Kind regards,