mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - fix stop_plan_successor case 5
contract line start in the suspension period and end after it
This commit is contained in:
committed by
Jean-Charles Drubay
parent
07f0f44c05
commit
ee3baca89d
@@ -827,10 +827,11 @@ class TestContract(TestContractBase):
|
||||
suspension_start, suspension_end, True
|
||||
)
|
||||
self.assertEqual(
|
||||
self.acct_line.date_start, start_date + (suspension_end - end_date)
|
||||
self.acct_line.date_start,
|
||||
start_date + (suspension_end - start_date),
|
||||
)
|
||||
self.assertEqual(
|
||||
self.acct_line.date_end, end_date + (suspension_end - end_date)
|
||||
self.acct_line.date_end, end_date + (suspension_end - start_date)
|
||||
)
|
||||
new_line = self.env['account.analytic.invoice.line'].search(
|
||||
[('predecessor_contract_line_id', '=', self.acct_line.id)]
|
||||
|
||||
Reference in New Issue
Block a user