I have this field in module hat_employee
bank_branch_id = fields.Many2one('bank.branch', "Bank Branch")
Note: bank.branch exists inside another custom module named lib_payroll
this error occurs:
AttributeError: '_unknown' object has no attribute 'id'
So i solved this error by adding lib_payroll in depends of manifest file , but another error occurs these modules make error when i uninstall and it appears as it doesn't exist
Note: lib_payroll depends on hat_employee too
probably recursion dependencies makes this error, So how can solve this problem? is there any way to solve unknown related model without adding module in depends?