mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - Fix unit test: is_auto_renew is considered in the forecast generation
This commit is contained in:
@@ -135,12 +135,15 @@ class TestContractLineForecastPeriod(TestContractBase):
|
||||
'date_end': Date.today() + relativedelta(months=3),
|
||||
'recurring_rule_type': "monthlylastday",
|
||||
'recurring_invoicing_type': 'pre-paid',
|
||||
'is_auto_renew': True,
|
||||
'is_auto_renew': False,
|
||||
}
|
||||
)
|
||||
self.acct_line._onchange_date_start()
|
||||
self.assertTrue(self.acct_line.forecast_period_ids)
|
||||
self.assertEqual(len(self.acct_line.forecast_period_ids), 4)
|
||||
self.acct_line.write({'is_auto_renew': True})
|
||||
self.assertTrue(self.acct_line.forecast_period_ids)
|
||||
self.assertEqual(len(self.acct_line.forecast_period_ids), 13)
|
||||
|
||||
@mute_logger("odoo.addons.queue_job.models.base")
|
||||
def test_forecast_period_on_contract_line_update_8(self):
|
||||
|
||||
Reference in New Issue
Block a user