添加功能
This commit is contained in:
@@ -45,6 +45,10 @@ class YuthonLeavingApproval(models.Model):
|
||||
if contract_id:
|
||||
contract_id.termination_date = record.expected_departure_date
|
||||
|
||||
def end_approval(self):
|
||||
for record in self:
|
||||
record.employee_id.user_state = 'leave'
|
||||
|
||||
@api.onchange('employee_id')
|
||||
def _onchange_employee_id(self):
|
||||
if self.employee_id:
|
||||
|
||||
Reference in New Issue
Block a user