[REF] contract: rename _get_recurring_next_date as get_next_invoice_date

It is easier to understand. Also make it public.
This commit is contained in:
Stéphane Bidoul (ACSONE)
2019-12-09 10:31:17 +01:00
committed by Jean-Charles Drubay
parent 07a13242f3
commit b7b993a153
2 changed files with 8 additions and 8 deletions

View File

@@ -564,7 +564,7 @@ class TestContract(TestContractBase):
0
)
def test_get_recurring_next_date(self):
def test_get_next_invoice_date(self):
"""Test different combination to compute recurring_next_date
Combination format
{
@@ -675,7 +675,7 @@ class TestContract(TestContractBase):
for recurring_next_date, combination in combinations:
self.assertEqual(
recurring_next_date,
contract_line_env._get_recurring_next_date(
contract_line_env.get_next_invoice_date(
*combination
),
error_message(*combination),