From 4764b5452b7bc7c0d4c847936740924a09c62815 Mon Sep 17 00:00:00 2001 From: XuanHuyen Date: Mon, 20 Jan 2025 11:00:14 +0700 Subject: [PATCH] employe contract management --- addons/hr_contract/models/hr_contract.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/hr_contract/models/hr_contract.py b/addons/hr_contract/models/hr_contract.py index 9287cab01..d953c919e 100644 --- a/addons/hr_contract/models/hr_contract.py +++ b/addons/hr_contract/models/hr_contract.py @@ -78,6 +78,12 @@ class Contract(models.Model): help='Person responsible for validating the employee\'s contracts.', domain=_get_hr_responsible_domain) calendar_mismatch = fields.Boolean(compute='_compute_calendar_mismatch', compute_sudo=True) first_contract_date = fields.Date(related='employee_id.first_contract_date') + department_of_justice = fields.Char(string="Department of Justice", required=True) + internship_start_date = fields.Date(string="Internship Start Date") + internship_end_date = fields.Date(string="Internship End Date") + probation_start_date = fields.Date(string="Probation Start Date") + probation_end_date = fields.Date(string="Probation End Date") + department_of_labor = fields.Char(string="Department of Labor", required=True) @api.depends('employee_id.resource_calendar_id', 'resource_calendar_id') def _compute_calendar_mismatch(self):