diff --git a/addons/hr/data/hr_demo.xml b/addons/hr/data/hr_demo.xml index fd6084e854a..a713638b1fa 100644 --- a/addons/hr/data/hr_demo.xml +++ b/addons/hr/data/hr_demo.xml @@ -141,6 +141,7 @@ If you have development competencies, we can propose you specific traineeshipsaiden.hughes71@example.com + Chief Executive Officer @@ -148,6 +149,7 @@ If you have development competencies, we can propose you specific traineeshipsRonnie Hart + Chief Technical Officer Building 1, Second Floor (376)-310-7863 @@ -160,6 +162,7 @@ If you have development competencies, we can propose you specific traineeships + Experienced Developer Building 1, Second Floor (538)-497-4804 @@ -173,6 +176,7 @@ If you have development competencies, we can propose you specific traineeships + Experienced Developer Building 1, Second Floor (450)-719-4182 @@ -185,6 +189,7 @@ If you have development competencies, we can propose you specific traineeships + Experienced Developer Building 1, Second Floor (332)-775-6660 @@ -197,6 +202,7 @@ If you have development competencies, we can propose you specific traineeships + Experienced Developer Building 1, Second Floor (157)-363-8229 @@ -210,6 +216,7 @@ If you have development competencies, we can propose you specific traineeships + Experienced Developer Building 1, Second Floor +3281813700 @@ -222,6 +229,7 @@ If you have development competencies, we can propose you specific traineeships + Experienced Developer Building 1, Second Floor (449)-505-5146 @@ -234,6 +242,7 @@ If you have development competencies, we can propose you specific traineeships + Consultant Building 1, Second Floor (203)-276-7903 @@ -246,6 +255,7 @@ If you have development competencies, we can propose you specific traineeships + Consultant Building 1, Second Floor (663)-707-8451 @@ -258,6 +268,7 @@ If you have development competencies, we can propose you specific traineeships + Marketing and Community Manager Building 1, Second Floor (916)-264-7362 @@ -270,6 +281,7 @@ If you have development competencies, we can propose you specific traineeships + Human Resources Manager Building 1, Second Floor (360)-694-7266 @@ -281,6 +293,7 @@ If you have development competencies, we can propose you specific traineeshipsWalter Horton + Experienced Developer Building 1, Second Floor (350)-912-1201 walter.horton80@example.com @@ -291,6 +304,7 @@ If you have development competencies, we can propose you specific traineeshipsPaul Williams + Experienced Developer Building 1, Second Floor (114)-262-1607 paul.williams59@example.com @@ -301,6 +315,7 @@ If you have development competencies, we can propose you specific traineeshipsDoris Cole + Consultant Building 1, Second Floor (883)-331-5378 doris.cole31@example.com @@ -311,6 +326,7 @@ If you have development competencies, we can propose you specific traineeshipsRachel Perry + Marketing and Community Manager Building 1, Second Floor (206)-267-3735 jod@odoo.com @@ -321,6 +337,7 @@ If you have development competencies, we can propose you specific traineeshipsBeth Evans + Experienced Developer Building 1, Second Floor (754)-532-3841 beth.evans77@example.com @@ -331,6 +348,7 @@ If you have development competencies, we can propose you specific traineeshipsErnest Reed + Consultant Building 1, Second Floor (944)-518-8232 ernest.reed47@example.com @@ -341,6 +359,7 @@ If you have development competencies, we can propose you specific traineeshipsEli Lambert + Marketing and Community Manager Building 1, Second Floor (644)-169-1352 eli.lambert22@example.com @@ -351,6 +370,7 @@ If you have development competencies, we can propose you specific traineeshipsAbigail Peterson + Consultant Building 1, Second Floor abigail.peterson39@example.com (482)-233-3393 diff --git a/addons/hr/models/hr_employee.py b/addons/hr/models/hr_employee.py index 1870c53015c..b1635bab5a7 100644 --- a/addons/hr/models/hr_employee.py +++ b/addons/hr/models/hr_employee.py @@ -41,12 +41,13 @@ class HrEmployeePrivate(models.Model): active = fields.Boolean('Active', related='resource_id.active', default=True, store=True, readonly=False) # private partner address_home_id = fields.Many2one( - 'res.partner', 'Private Address', help='Enter here the private address of the employee, not the one linked to your company.', + 'res.partner', 'Address', help='Enter here the private address of the employee, not the one linked to your company.', groups="hr.group_hr_user", tracking=True) is_address_home_a_company = fields.Boolean( 'The employee adress 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") country_id = fields.Many2one( 'res.country', 'Nationality (Country)', groups="hr.group_hr_user", tracking=True) gender = fields.Selection([ @@ -90,8 +91,7 @@ class HrEmployeePrivate(models.Model): study_school = fields.Char("School", groups="hr.group_hr_user", tracking=True) emergency_contact = fields.Char("Emergency Contact", groups="hr.group_hr_user", tracking=True) emergency_phone = fields.Char("Emergency Phone", groups="hr.group_hr_user", tracking=True) - km_home_work = fields.Integer(string="Km home-work", groups="hr.group_hr_user", tracking=True) - google_drive_link = fields.Char(string="Employee Documents", groups="hr.group_hr_user", tracking=True) + km_home_work = fields.Integer(string="Km Home-Work", groups="hr.group_hr_user", tracking=True) # image: all image fields are base64 encoded and PIL-supported image = fields.Binary( diff --git a/addons/hr/models/hr_employee_public.py b/addons/hr/models/hr_employee_public.py index 1f7af77dfb9..8a80a23c939 100644 --- a/addons/hr/models/hr_employee_public.py +++ b/addons/hr/models/hr_employee_public.py @@ -28,6 +28,7 @@ class HrEmployeePublic(models.Model): user_id = fields.Many2one(readonly=True) resource_id = fields.Many2one(readonly=True) resource_calendar_id = fields.Many2one(readonly=True) + color = fields.Integer(readonly=True) # hr.employee.public specific fields child_ids = fields.One2many('hr.employee.public', 'parent_id', string='Direct subordinates', readonly=True) diff --git a/addons/hr/models/res_config_settings.py b/addons/hr/models/res_config_settings.py index a75564bc122..76831c694eb 100644 --- a/addons/hr/models/res_config_settings.py +++ b/addons/hr/models/res_config_settings.py @@ -9,13 +9,13 @@ class ResConfigSettings(models.TransientModel): resource_calendar_id = fields.Many2one( 'resource.calendar', 'Company Working Hours', related='company_id.resource_calendar_id', readonly=False) - module_hr_org_chart = fields.Boolean(string="Show Organizational Chart") - module_hr_presence = fields.Boolean(string="Advanced control presence of employees") + module_hr_org_chart = fields.Boolean(string="Organizational Chart") + module_hr_presence = fields.Boolean(string="Advanced Employees Presence Check Based on") module_hr_skills = fields.Boolean(string="Employee Skills and Resumé") - hr_presence_control_login = fields.Boolean(string="According to the system login (User status on chat)", config_parameter='hr.hr_presence_control_login') - hr_presence_control_email = fields.Boolean(string="According to the amount of sent emails", config_parameter='hr_presence.hr_presence_control_email') - hr_presence_control_ip = fields.Boolean(string="According to the IP address", config_parameter='hr_presence.hr_presence_control_ip') - module_hr_attendance = fields.Boolean(string="According to the Attendance module.") + hr_presence_control_login = fields.Boolean(string="The system login (User status on chat)", config_parameter='hr.hr_presence_control_login') + hr_presence_control_email = fields.Boolean(string="The amount of sent emails", config_parameter='hr_presence.hr_presence_control_email') + hr_presence_control_ip = fields.Boolean(string="The IP address", config_parameter='hr_presence.hr_presence_control_ip') + module_hr_attendance = fields.Boolean(string="The Attendance module.") hr_presence_control_email_amount = fields.Integer(related="company_id.hr_presence_control_email_amount", readonly=False) hr_presence_control_ip_list = fields.Char(related="company_id.hr_presence_control_ip_list", readonly=False) hr_employee_self_edit = fields.Boolean(string="Employee Edition", config_parameter='hr.hr_employee_self_edit') diff --git a/addons/hr/models/res_users.py b/addons/hr/models/res_users.py index 5615a17a6ec..d863c41fd64 100644 --- a/addons/hr/models/res_users.py +++ b/addons/hr/models/res_users.py @@ -25,6 +25,7 @@ class User(models.Model): coach_id = fields.Many2one(related='employee_id.coach_id', readonly=False, related_sudo=False) address_home_id = fields.Many2one(related='employee_id.address_home_id', readonly=False, related_sudo=False) is_address_home_a_company = fields.Boolean(related='employee_id.is_address_home_a_company', readonly=False, related_sudo=False) + private_email = fields.Char(related='address_home_id.email', string="Private Email", readonly=False) km_home_work = fields.Integer(related='employee_id.km_home_work', readonly=False, related_sudo=False) # res.users already have a field bank_account_id and country_id from the res.partner inheritance: don't redefine them employee_bank_account_id = fields.Many2one(related='employee_id.bank_account_id', string="Employee's Bank Account Number", related_sudo=False, readonly=False) @@ -44,7 +45,6 @@ class User(models.Model): visa_no = fields.Char(related='employee_id.visa_no', readonly=False, related_sudo=False) permit_no = fields.Char(related='employee_id.permit_no', readonly=False, related_sudo=False) visa_expire = fields.Date(related='employee_id.visa_expire', readonly=False, related_sudo=False) - google_drive_link = fields.Char(related='employee_id.google_drive_link', readonly=False, related_sudo=False) additional_note = fields.Text(related='employee_id.additional_note', readonly=False, related_sudo=False) barcode = fields.Char(related='employee_id.barcode', readonly=False, related_sudo=False) pin = fields.Char(related='employee_id.pin', readonly=False, related_sudo=False) @@ -92,7 +92,6 @@ class User(models.Model): 'employee_bank_account_id', 'employee_country_id', 'gender', - 'google_drive_link', 'identification_id', 'is_address_home_a_company', 'job_title', diff --git a/addons/hr/views/hr_employee_public_views.xml b/addons/hr/views/hr_employee_public_views.xml index 95b277b30f0..0d059c31dd6 100644 --- a/addons/hr/views/hr_employee_public_views.xml +++ b/addons/hr/views/hr_employee_public_views.xml @@ -8,6 +8,14 @@ + + + + + + + + @@ -43,6 +51,7 @@ + @@ -55,8 +64,7 @@ options='{"always_reload": True, "highlight_first_line": True}'/> - - + @@ -81,7 +89,7 @@ - + @@ -119,12 +127,13 @@ - +
  • -
  • +
  • +
diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index 56a96215194..39cd765e5a3 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -10,7 +10,7 @@ - + @@ -77,7 +77,7 @@

- +

@@ -90,7 +90,8 @@ - + +
@@ -103,8 +104,7 @@ options='{"always_reload": True, "highlight_first_line": True}'/>
- - + @@ -120,23 +120,17 @@ - + - -
- Use here the home address of the employee. - This private address is used in the expense report reimbursement document. - It should be different from the work address. -
- - + + +
@@ -175,16 +169,13 @@
- - -
- + @@ -37,7 +45,7 @@ help="Worked hours last month">
- Hours + Hours Last Month @@ -66,7 +74,15 @@ type="action" attrs="{'invisible': ['|', ('attendance_state', '=', False), '&', ('hr_presence_state', '=', 'present'), ('attendance_state', '=', 'checked_out')]}">