employe contract management
This commit is contained in:
parent
c66c1d20a9
commit
4764b5452b
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user