How to create tree structure doctype


I Want to have tree structure based on the reports_to field how can I achieve this?
even in settings I have added reports_to as parent field


The tree structure should be based on reports_to field