Browse Source

[IMP] - archive contract_line on contract archive

13.0-mig-contract
sbejaoui 6 years ago
committed by Administrator
parent
commit
0b295f4a24
  1. 5
      contract/models/contract_line.py

5
contract/models/contract_line.py

@ -77,6 +77,9 @@ class AccountAnalyticInvoiceLine(models.Model):
], ],
compute="_compute_state", compute="_compute_state",
) )
active = fields.Boolean(
string="Active", related="contract_id.active", strore=True
)
@api.multi @api.multi
def _compute_state(self): def _compute_state(self):
@ -519,8 +522,6 @@ class AccountAnalyticInvoiceLine(models.Model):
"invoiced at least one time." "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 new_date_start = rec.date_start + delay_delta
rec.recurring_next_date = self._compute_first_recurring_next_date( rec.recurring_next_date = self._compute_first_recurring_next_date(
new_date_start, new_date_start,

Loading…
Cancel
Save