Link issue in doctype

good evening how to link between department and section and unit when i write the department the section appear drop down list auto in ERPnext?