mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: Terminate contract lines with last_date_invoiced if it is higher than terminate date from wizard
This commit is contained in:
@@ -2295,6 +2295,15 @@ class TestContract(TestContractBase):
|
||||
"terminate_comment",
|
||||
to_date("2018-02-13"),
|
||||
)
|
||||
# Try terminate contract line with last_date_invoiced allowed
|
||||
self.contract._terminate_contract(
|
||||
self.terminate_reason,
|
||||
"terminate_comment",
|
||||
to_date("2018-02-13"),
|
||||
terminate_lines_with_last_date_invoiced=True,
|
||||
)
|
||||
self.assertTrue(self.contract.is_terminated)
|
||||
self.assertEqual(self.acct_line.date_end, to_date("2018-02-14"))
|
||||
|
||||
def test_recurrency_propagation(self):
|
||||
# Existing contract
|
||||
|
||||
Reference in New Issue
Block a user