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