diff --git a/yuthon_hr_employee_approval/models/yuthon_onboard_approval.py b/yuthon_hr_employee_approval/models/yuthon_onboard_approval.py index 77e36ac94..80e5c11fe 100644 --- a/yuthon_hr_employee_approval/models/yuthon_onboard_approval.py +++ b/yuthon_hr_employee_approval/models/yuthon_onboard_approval.py @@ -166,7 +166,7 @@ class YuthonOnboardApproval(models.Model): marital = 'single' else: marital = 'married' - employee_id = self.env['hr.employee'].create({'name': self.employee_name_id.display_name, + employee_id = self.env['hr.employee'].create({'name': self.employee_name_id.partner_name, 'birthday': login_id.date_birth, 'retire_date': self.duration_employment_end, 'political_aspects': login_id.political,