vals =
{'last_name': self.x_lastname or '',
'first_name': self.x_firstname or '',
'name':self.x_employee_name or '',
'estimated_hire_date': self.x_hiredate or None,
'x_zzrq': self.x_zzrq or None,
'username': self.x_username or '',
'plan_id': self.x_lian.id or None,
'email': self.x_email or '',
'phone_number': self.x_mobilephone or '',
'department_id': self.x_department.id,
'position_id': self.x_position.id,
'legal_entity_id': self.x_legal_entity.id,
'employee_type': self.x_employee_type.id,
'supervisor_id': self.x_supervisor.id,
'x_gszd': self.x_gszd or False,
'job_grade_id': self.x_job_grade.id or None,
'job_level_id': self.x_job_level.id or None,
'x_gzcss': self.x_gzcss.id or None,
'x_gzcsss': self.x_gzcsss.id or None,
'sign_legal_entity_id': self.x_sign_legal_entity.id or None,
'contract_agreement_id': self.x_contract_agreement.id or None,
'contract_category_id': self.x_contract_category.id or None,
'lang_id': self.x_lang.id or None,
'contract_date_start': self.x_contract_date_start or None,
'contract_date_end': self.x_contract_date_end or None,
'trial_date_start': self.x_trial_date_start or None,
'trial_date_end': self.x_trial_date_end or None}
env['pre.hire'].create(vals)