[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 <jbm-odoo@users.noreply.github.com>
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user