When the HR modules are enabled and we have 1 employee for each users, some parts of the UI become confusing because we have several partners for the same person:
- res.user inherits from res.partner, and fields such as the email are stored in there
- hr.employee has address_id and address_home_id. The first one refers to the work address (presumably the partner related to the company of the address of an office of the company, so not a problem) but the other one is the home address and if used it will probably be linked to a partner with the same name as the employee.
Assumption: we would like to exclude home addresses from the list of available partners in m2o and m2m fields.
Note
when this module is installed a post init hook will set all partners related via `address_home_id` as inactive.
To install this module, you need to:
- clone the branch 10.0 of the repository https://github.com/OCA/hr
- add the path to this repository in your configuration (addons-path)
- update the module list
- search for "HR Employee Address Improved" in your addons
- install the module
No extra configuration needed.
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
- Odoo Community Association: Icon.
- Simone Orsi <[email protected]>
- Alexandre Fayolle <[email protected]>
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.