HR Employee Address Improved
HR Employee Address Improved
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.
Installation
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
Configuration
No extra configuration needed.
Bug Tracker
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.
Credits
Images
- Odoo Community Association: Icon.
Contributors
- Simone Orsi <simone.orsi@camptocamp.com>
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
Maintainer
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.
Once the user has seen at least one product this snippet will be visible.