Browse Source
[REF] contract: re-add _compute_first_recurring_next_date
For backward compatibility
pull/434/head
Stéphane Bidoul (ACSONE)
5 years ago
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with
17 additions and
0 deletions
-
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, |
|
|