Table Name: tabTree

Fields

Sr Fieldname Type Label Options
1 tree_name Data Tree Name
2 parent_tree Link Parent Tree Tree
3 is_group Select Has Child Node

Only leaf nodes are allowed in transaction

Yes
No
4 lft Int lft
5 rgt Int rgt
6 old_parent Link old_parent Tree

Controller

tree_view.tree_view.doctype.tree.tree

Class Tree

Inherits from frappe.model.document.Document

check_if_child_exists (self)

No docs


on_trash (self)

No docs


on_update (self)

No docs


update_nsm_model (self)

update lft, rgt indices for nested set model


validate_trash (self)

checks if child exists



Linked In: