take an look on how the chart of accounts that the data for the account tree
My suggestion, you can create one list, to return, distinct than the acc, and while you is looping the acc you check if it have childrens, if it have children, you can append the childrens into the tree.
Note: It’s an suggestion, and may not work properly in ERPNext.
Thanks Max, we were exploring that with Mario, and your post reinforces our search for solutions in the methods available there. Thanks for the prompt reply!
Update: Found this gem which helped us do a workaround to run some calculations on data in tree view. Ultimately, it will be in the _tree.js for the Animal Group DocType when it is finally Pulled into the Core.
Max, li alguns dos seus post, e percebi que você é o programador mais ativo no grupo na adaptação do ERPNEXT para o Brasil, você ainda esta empenhado no projeto?
Desculpe por comentar seu post, mas não tinha como eu mandar uma msg no privado.
Sir i successfully implemented tree structure for my custom doctype using your reference.
Thank you so much
Sir i want to hide add_child, edit and delete button from tree view i just want only tree structure. So how i should hide that button. please help me out.
Thanks in advance.
Add the fields:
(i) test_name - Data (this field should be Mandatory)
(ii)parent_test - Link:Tree
(iii)is_group - Select:Yes/No
(iv) lft - Int (this field should be hidden)
(v)rgt - Int (this field should be hidden)
(vi)old_parent - Link:Test (this field should be hidden)
as shown in the screenshot below