[FIX] - as date_start is required, constraints on it become useless

[FIX] - for finished contract _get_lines_to_invoice should return False
This commit is contained in:
sbejaoui
2018-12-20 21:50:30 +01:00
committed by Jean-Charles Drubay
parent 2b80ed5696
commit 8e56200b56
3 changed files with 5 additions and 17 deletions

View File

@@ -417,11 +417,6 @@ class TestContract(TestContractBase):
self.contract.write({'recurring_invoices': True})
self.acct_line.write({'recurring_next_date': False})
def test_check_date_start_recurring_invoices(self):
with self.assertRaises(ValidationError):
self.contract.write({'recurring_invoices': True})
self.acct_line.write({'date_start': False})
def test_onchange_contract_template_id(self):
"""It should change the contract values to match the template."""
self.contract.contract_template_id = self.template