How to hide Name and Status from a Custom Doctype

You can change the label or assignment of status by creating a js file with name your-doctype-name_list.js and put it inside the doctype directory.
The code:

frappe.listview_settings['Your Doctype Name'] = {
    get_indicator:function(doc){
        if (doc.status === "Status A") {
            return [__("Status A"), "green"];
        },
        {
            # add more status here withthe same structure as above.
        },
        hide_name_column: true
}

So maybe (never tried this myself) if you create an empty js list file it will not display the status.

The last line hide_name_column: true is to hide the naming column (the last column).

5 Likes