[FIX] hr: fix employee ux

After installing l10n_be_hr_payroll, the address, email, phone and bank account number take half of the dedicated space.

This commit makes the fields take the dedicated space

task-2790206

closes odoo/odoo#86098

Related: odoo/enterprise#25126
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Philippe Wauthy
2022-03-25 15:54:23 +01:00
parent 242d81e66e
commit b328f0b09f
2 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ class HrEmployeePrivate(models.Model):
], string='Marital Status', groups="hr.group_hr_user", default='single', tracking=True)
spouse_complete_name = fields.Char(string="Spouse Complete Name", groups="hr.group_hr_user", tracking=True)
spouse_birthdate = fields.Date(string="Spouse Birthdate", groups="hr.group_hr_user", tracking=True)
children = fields.Integer(string='Number of Dependant Children', groups="hr.group_hr_user", tracking=True)
children = fields.Integer(string='Number of Dependent Children', groups="hr.group_hr_user", tracking=True)
place_of_birth = fields.Char('Place of Birth', groups="hr.group_hr_user", tracking=True)
country_of_birth = fields.Many2one('res.country', string="Country of Birth", groups="hr.group_hr_user", tracking=True)
birthday = fields.Date('Date of Birth', groups="hr.group_hr_user", tracking=True)
+10 -6
View File
@@ -118,7 +118,7 @@
<page name="personal_information" string="Private Information" groups="hr.group_hr_user">
<group>
<group string="Private Contact">
<group>
<group colspan="2">
<field name="address_home_id"
context="{
'show_address': 1,
@@ -139,11 +139,15 @@
</group>
</group>
<group>
<group string="Family Status" colspan="2">
<field name="marital"/>
<field name="spouse_complete_name" attrs="{'invisible': [('marital', 'not in', ['married', 'cohabitant'])]}" groups="hr.group_hr_user"/>
<field name="spouse_birthdate" attrs="{'invisible': [('marital', 'not in', ['married', 'cohabitant'])]}" groups="hr.group_hr_user"/>
<field name="children"/>
<group name="family_status" string="Family Status" colspan="2">
<group colspan="2">
<field name="marital"/>
<field name="spouse_complete_name" attrs="{'invisible': [('marital', 'not in', ['married', 'cohabitant'])]}" groups="hr.group_hr_user"/>
<field name="spouse_birthdate" attrs="{'invisible': [('marital', 'not in', ['married', 'cohabitant'])]}" groups="hr.group_hr_user"/>
</group>
<group name="children" col="4" colspan="2">
<field name="children"/>
</group>
</group>
<group string="Emergency" colspan="2">
<field name="emergency_contact"/>