From 59e39db3b9022f97ff4fd726958f04410118b5bb Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 10 Feb 2021 08:56:54 +0000 Subject: [PATCH] [FIX] hr: Impossible to create an employee Steps to reproduce the bug: - Let's consider a user U with a related partner P - Log with an internal user IU without Admnistration/Settings and Employee Officer access rights - Create an employee E with address_home_id = P and save Bug: An access right was raised because the mobile of P was written on P and the error was raised at https://github.com/odoo/odoo/blob/13.0/odoo/addons/base/models/res_partner.py#L531 Due to this bug, only internal user with Admnistration/Settings access rights can create an employee linked to a contact of an internal user. opw:2445953 closes odoo/odoo#66014 X-original-commit: 7e50c8ae6aad3325163e8a30c4f2513d24b72b83 Signed-off-by: Simon Goffin (sig) --- addons/hr/views/hr_employee_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index 132c9ef902e..03deff6c7e5 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -132,7 +132,7 @@ 'form_view_ref': 'base.res_partner_view_form_private'}" options='{"always_reload": True, "highlight_first_line": True}'/> - +