From 7212fc4a13237192f7bd09b20a6ae01f451e42fe Mon Sep 17 00:00:00 2001 From: Bejaoui Souheil Date: Mon, 9 Dec 2019 12:28:57 +0100 Subject: [PATCH] [REF] contract: simplify _get_period_to_invoice --- contract/models/contract_line.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contract/models/contract_line.py b/contract/models/contract_line.py index e8b79bfa..c9d475bd 100644 --- a/contract/models/contract_line.py +++ b/contract/models/contract_line.py @@ -667,9 +667,8 @@ class ContractLine(models.Model): # TODO this method can now be removed, since # TODO self.next_period_date_start/end have the same values self.ensure_one() - first_date_invoiced = False if not recurring_next_date: - return first_date_invoiced, False, recurring_next_date + return False, False, False first_date_invoiced = ( last_date_invoiced + relativedelta(days=1) if last_date_invoiced