This is the file location where the capabilities have been set up.
modules/hrm/includes/functions-capabilities.php line no 138
And you can use this filter
erp_hr_map_meta_caps and make a plugin to manage custom roles instead of changing the core codes.
Thanks and feel free to let me know if you need more help from me 🙂