Browse Source

[REF] contract: re-add _compute_first_recurring_next_date

For backward compatibility
pull/434/head
Stéphane Bidoul (ACSONE) 5 years ago
parent
commit
7c3b9bcfa7
No known key found for this signature in database GPG Key ID: BCAB2555446B5B92
  1. 17
      contract/models/contract_line.py

17
contract/models/contract_line.py

@ -363,6 +363,23 @@ class ContractLine(models.Model):
_("Contract line and its predecessor overlapped") _("Contract line and its predecessor overlapped")
) )
@api.model
def _compute_first_recurring_next_date(
self,
date_start,
recurring_invoicing_type,
recurring_rule_type,
recurring_interval
):
# deprecated method for backward compatibility
return self._get_recurring_next_date(
date_start,
recurring_invoicing_type,
recurring_rule_type,
recurring_interval,
max_date_end=False,
)
@api.model @api.model
def _get_recurring_next_date( def _get_recurring_next_date(
self, self,

Loading…
Cancel
Save