mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[REF] contract: re-add _compute_first_recurring_next_date
For backward compatibility
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
92cb491f6b
commit
e2fa625aeb
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user