Is there a way to set the tree view as default without modifying hooks.py

I’d like my users to be able to set the default view for themselves without having to come through me. I want to avoid having to modify something like this via bench.
Is there a way to set the tree view as the default list view for a docType?

Cheers

1 Like

Should be simple via custom script on list view:

  • When on list view check if last route was tree view, if not redirect to treeview route. (to avoid infinite looping)

or create a feature request, I agree… it shouldn’t be this hard to set the default view of any doctype :smile:

reference:

2 Likes