diff --git a/erpnext/accounts/doctype/cost_center/cost_center_tree.js b/erpnext/accounts/doctype/cost_center/cost_center_tree.js index f409d648fee..50436698105 100644 --- a/erpnext/accounts/doctype/cost_center/cost_center_tree.js +++ b/erpnext/accounts/doctype/cost_center/cost_center_tree.js @@ -48,5 +48,10 @@ frappe.treeview_settings["Cost Center"] = { }, __('Budget')); }, + onrender: function(node) { + if(node.is_root){ + node.hide_add = true; + } + } } \ No newline at end of file