huyen_dev #2
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user