From 83ab007377ee06bf31278b388b2e3609e1ea745f Mon Sep 17 00:00:00 2001 From: jbm-odoo Date: Mon, 14 Oct 2019 12:18:53 +0000 Subject: [PATCH] [FIX] hr: Fix consitency in employee form Before this commit: Private email and phone are related of partner 'address' fields. But the phone was read-only and the email is editable. After this commit: As phone and mail are related, they are read-only. We must edit them on the partner of Address field. close #38518 closes odoo/odoo#38872 X-original-commit: ed6fb25ca0671a520c9d003a58eefefcf93dbc1a Signed-off-by: jbm-odoo --- addons/hr/models/hr_employee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr/models/hr_employee.py b/addons/hr/models/hr_employee.py index c3d031e8c33..1ddd3f77bd2 100644 --- a/addons/hr/models/hr_employee.py +++ b/addons/hr/models/hr_employee.py @@ -48,7 +48,7 @@ class HrEmployeePrivate(models.Model): 'The employee address has a company linked', compute='_compute_is_address_home_a_company', ) - private_email = fields.Char(related='address_home_id.email', string="Private Email", readonly=False, groups="hr.group_hr_user") + private_email = fields.Char(related='address_home_id.email', string="Private Email", groups="hr.group_hr_user") country_id = fields.Many2one( 'res.country', 'Nationality (Country)', groups="hr.group_hr_user", tracking=True) gender = fields.Selection([