mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] - archive contract_line on contract archive
This commit is contained in:
@@ -77,6 +77,9 @@ class AccountAnalyticInvoiceLine(models.Model):
|
||||
],
|
||||
compute="_compute_state",
|
||||
)
|
||||
active = fields.Boolean(
|
||||
string="Active", related="contract_id.active", strore=True
|
||||
)
|
||||
|
||||
@api.multi
|
||||
def _compute_state(self):
|
||||
@@ -519,8 +522,6 @@ class AccountAnalyticInvoiceLine(models.Model):
|
||||
"invoiced at least one time."
|
||||
)
|
||||
)
|
||||
old_date_start = rec.date_start
|
||||
old_date_end = rec.date_end
|
||||
new_date_start = rec.date_start + delay_delta
|
||||
rec.recurring_next_date = self._compute_first_recurring_next_date(
|
||||
new_date_start,
|
||||
|
||||
Reference in New Issue
Block a user