Hiding Tree View

Screenshot from 2023-10-07 15-59-30
how to hide this Tree view from List View for company doc

Hi @anjalipv,

Remove or uncheck the box from the doctype that you use.

Otherwise apply the client script for lisview.

Please check the syntax.

frappe.listview_settings['Your DocType'] = {
    refresh : function(listview) {
        $('li[data-view="Tree"]').hide();
    }
};

I hope this helps.

Thank You!

3 Likes