mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - default value for active field in contract line
[FIX] - fix flake8
This commit is contained in:
@@ -659,10 +659,6 @@ class TestContract(TestContractBase):
|
||||
self.acct_line.write({'date_end': False, 'is_auto_renew': False})
|
||||
self.assertFalse(self.contract.date_end)
|
||||
|
||||
def test_last_date_invoiced_prepaid(self):
|
||||
self.contract.recurring_create_invoice()
|
||||
self
|
||||
|
||||
def test_stop_contract_line(self):
|
||||
"""It should put end to the contract line"""
|
||||
self.acct_line.write(
|
||||
@@ -1292,8 +1288,10 @@ class TestContract(TestContractBase):
|
||||
invoice_lines = self.env['account.invoice.line'].search(
|
||||
[('account_analytic_id', 'in', contracts.ids)]
|
||||
)
|
||||
self.assertEqual(len(contracts.mapped('recurring_invoice_line_ids')),
|
||||
len(invoice_lines))
|
||||
self.assertEqual(
|
||||
len(contracts.mapped('recurring_invoice_line_ids')),
|
||||
len(invoice_lines),
|
||||
)
|
||||
|
||||
def test_get_invoiced_period_monthlylastday(self):
|
||||
self.acct_line.date_start = '2018-01-05'
|
||||
|
||||
Reference in New Issue
Block a user