mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
hide add_child for root node (#13444)
This commit is contained in:
@@ -48,5 +48,10 @@ frappe.treeview_settings["Cost Center"] = {
|
||||
}, __('Budget'));
|
||||
|
||||
},
|
||||
onrender: function(node) {
|
||||
if(node.is_root){
|
||||
node.hide_add = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user