From bfa0a66e52f3da1e3fab8fbce9921575a4711017 Mon Sep 17 00:00:00 2001 From: William Braeckman Date: Thu, 24 Jun 2021 07:53:49 +0000 Subject: [PATCH] [IMP] hr: move personal documents to hr Previously personal documents on employees were added with the belgian contract salary module. This changes moves part of those fields to the base hr module Task ID: 2578139 closes odoo/odoo#72673 Related: odoo/enterprise#19219 Related: odoo/upgrade#2587 Signed-off-by: Yannick Tivisse (yti) --- addons/hr/models/hr_employee.py | 2 ++ addons/hr/views/hr_employee_views.xml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/addons/hr/models/hr_employee.py b/addons/hr/models/hr_employee.py index 79597e87f7f..104a82144b5 100644 --- a/addons/hr/models/hr_employee.py +++ b/addons/hr/models/hr_employee.py @@ -118,6 +118,8 @@ class HrEmployeePrivate(models.Model): departure_description = fields.Text(string="Additional Information", groups="hr.group_hr_user", copy=False, tracking=True) departure_date = fields.Date(string="Departure Date", groups="hr.group_hr_user", copy=False, tracking=True) message_main_attachment_id = fields.Many2one(groups="hr.group_hr_user") + id_card = fields.Binary(string="ID Card Copy", groups="hr.group_hr_user") + driving_license = fields.Binary(string="Driving License", groups="hr.group_hr_user") _sql_constraints = [ ('barcode_uniq', 'unique (barcode)', "The Badge ID must be unique, this one is already assigned to another employee."), diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index e2e0fbb1499..286e3e37469 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -201,6 +201,12 @@ + + + + + +