Over ride files issue with hooks.py files

I moved my erp version 13 custom script to erp-14 . IN erp13 Employee doctype class is override in my custom code and mention in hooks.py file ,but in erp-14 that emplooyee doctype .py file is override in hrms module and my custom module , that over ride file mention in both hrms and my custom, while running it is taking the hrms module regarding the my custom ,in alphabatical also my custom start with ss even also hrms takes place , how can i solve this issue,