Skip to content

Commit

Permalink
!fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow committed Dec 14, 2018
1 parent 9d815fe commit eb5acb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hr_period/tests/test_payslip.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ def test_contract(self):
date_from, date_to, move_date, self.company, run)
payslip = self.payslip_obj.create(data)
self.assertEqual(payslip.hr_period_id, periods[1], 'Wrong pay period')
self.contract2.journal_id = payslip.journal_id
payslip.contract_id = self.contract2
payslip.onchange_contract()
payslip.onchange_contract_period()
period = self.env['hr.period'].get_next_period(
self.company.id, 'quarterly')
self.assertEqual(payslip.hr_period_id, period)

0 comments on commit eb5acb4

Please sign in to comment.