From 7c3b9bcfa72569a81610b441bda27d8cf7d5f112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Fri, 6 Dec 2019 14:15:47 +0100 Subject: [PATCH] [REF] contract: re-add _compute_first_recurring_next_date For backward compatibility --- contract/models/contract_line.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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,