diff --git a/contract/models/contract_line.py b/contract/models/contract_line.py index 8124786e..0b711a02 100644 --- a/contract/models/contract_line.py +++ b/contract/models/contract_line.py @@ -363,6 +363,23 @@ class ContractLine(models.Model): _("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 def _get_recurring_next_date( self,