From bf56bf876ecfa5562f3f2c6feb3c9d7d58c2577a Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Fri, 4 Jan 2019 13:44:19 +0100 Subject: [PATCH] [FIX] - do not copy last_date_invoiced on plan_successor --- contract/models/contract_line.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contract/models/contract_line.py b/contract/models/contract_line.py index d2a5764d..8d8a2ea8 100644 --- a/contract/models/contract_line.py +++ b/contract/models/contract_line.py @@ -506,6 +506,7 @@ class AccountAnalyticInvoiceLine(models.Model): ) new_vals = self.read()[0] new_vals.pop("id", None) + new_vals.pop("last_date_invoiced", None) values = self._convert_to_write(new_vals) values['date_start'] = date_start values['date_end'] = date_end