diff --git a/yuthon_contract/models/inherit_hr_contract.py b/yuthon_contract/models/inherit_hr_contract.py index 30a93cbfa..f5bed2258 100644 --- a/yuthon_contract/models/inherit_hr_contract.py +++ b/yuthon_contract/models/inherit_hr_contract.py @@ -145,6 +145,7 @@ class HrContract(models.Model): "context": { "default_employee_id": self.employee_id.id, "default_current_status": self.date_end, + "default_department1_id": self.employee_id.department_id.id, "default_contract_id": self.id, }, }