It is not easy to disable an application or infrastructure components in OFBiz because there are dependencies between applications, mainly based on entity definitions. In this particular case, an error occurs due to a dependency on accounting for the HR component.
If you really want to disable the component, you must remove all the dependencies and fix them. Is there a specific reason why you want to “disable” the HR component? Instead, you can remove it from the screen by setting app-bar-display = "false" and even prohibit logging in this application with some permissions, for example.
On the other hand, disabling special applications should be straightforward.
source share