Browse Source

[REF] contract: simplify _get_period_to_invoice

pull/434/head
Bejaoui Souheil 4 years ago
committed by Stéphane Bidoul (ACSONE)
parent
commit
7212fc4a13
No known key found for this signature in database GPG Key ID: BCAB2555446B5B92
  1. 3
      contract/models/contract_line.py

3
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

Loading…
Cancel
Save