Skip to content

Commit

Permalink
[8.0.4.0.0][hr_career_transition] Fixing Travis Error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed Nov 3, 2020
1 parent 00b0183 commit 49dee7a
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions hr_career_transition/models/hr_career_transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,25 +625,31 @@ def _prepare_new_contract(self):
self.ensure_one()
return {
"employee_id": self.employee_id.id,
"job_id": self.new_job_id and \
self.new_job_id.id or \
False,
"job_id": self.new_job_id and self.new_job_id.id or False,
"type_id": self.contract_type_id.id,
"date_start": self.contract_start_date,
"date_end": self.contract_end_date,
"working_hours": self.new_working_hour_id and \
self.new_working_hour_id.id or \
False,
"working_hours": (
self.new_working_hour_id and
self.new_working_hour_id.id or
False
),
"wage": self.new_wage,
"contract_department_id": self.new_department_id and \
self.new_department_id.id or \
False,
"parent_id": self.new_manager_id and \
self.new_manager_id.id or \
False,
"company_id": self.new_company_id and \
self.new_company_id.id or \
False,
"contract_department_id": (
self.new_department_id and
self.new_department_id.id or
False
),
"parent_id": (
self.new_manager_id and
self.new_manager_id.id or
False
),
"company_id": (
self.new_company_id and
self.new_company_id.id or
False
),
}

@api.multi
Expand Down

0 comments on commit 49dee7a

Please sign in to comment.