HR Portal Employee Link
Automatically links a newly granted portal user to their employee record whenever exactly one employee matches the user's partner in the company — no manual linking, no creating the user from the employee form.
What it does
When a partner is given portal access, Odoo creates a portal user but does not connect it to any employee. This module closes that gap: on portal-access grants it looks for a single employee tied to the same partner in the company and links the new user to it. Partners that match zero or several employees are left untouched, with a warning logged so the ambiguity is visible.
Dependencies
hr, portal This module sets auto_install=True, so it installs automatically once both hr and portal are present in the database.
Configuration
Install; it acts on portal-access grants automatically. No settings.
Coverage
- 3 automated tests.
- Ambiguous (zero- or multi-employee) partners are skipped with a logged warning.
Screenshots: TODO (capture from staging)
Built and maintained by ETS.inc — support via the address on this listing.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module