How Can I list doctypes based on department wise. here is my scenario: i have a doctype there is one role department head. if one particular department head login he should able to see the records under his on department. eg: logged as a accounts head he should able to see records linked to accounts department. i tried permission_query_conditions
in hooks its working fine. there is any other way in hooks.?