employe contract management
All checks were successful
Setup Native Action / native (3.12.7) (pull_request) Has been skipped
Setup Native Action / docker (3.12.7) (pull_request) Has been skipped

This commit is contained in:
XuanHuyen 2025-01-20 11:00:14 +07:00
parent c66c1d20a9
commit 4764b5452b

View File

@ -78,6 +78,12 @@ class Contract(models.Model):
help='Person responsible for validating the employee\'s contracts.', domain=_get_hr_responsible_domain) 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) calendar_mismatch = fields.Boolean(compute='_compute_calendar_mismatch', compute_sudo=True)
first_contract_date = fields.Date(related='employee_id.first_contract_date') 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') @api.depends('employee_id.resource_calendar_id', 'resource_calendar_id')
def _compute_calendar_mismatch(self): def _compute_calendar_mismatch(self):