add_child configurable to be hidden for a node (#5319)
This commit is contained in:
parent
04885ec241
commit
2897ac7dc0
1 changed files with 3 additions and 1 deletions
|
|
@ -176,7 +176,9 @@ frappe.views.TreeView = Class.extend({
|
|||
},
|
||||
{
|
||||
label:__("Add Child"),
|
||||
condition: function(node) { return me.can_create && node.expandable; },
|
||||
condition: function(node) {
|
||||
return me.can_create && node.expandable && !node.hide_add;
|
||||
},
|
||||
click: function(node) {
|
||||
me.new_node();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue