From 7308e282eeb58dfc185d34ded82e1495ac384fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 30 Oct 2018 18:22:39 +0100 Subject: [PATCH] Reset next_consumption_date when copying line issue7813 review68341002 --- subscription.py | 1 + 1 file changed, 1 insertion(+) diff --git a/subscription.py b/subscription.py index 3a3a465b17..e5576129f6 100644 --- a/subscription.py +++ b/subscription.py @@ -701,6 +701,7 @@ class Line(sequence_ordered(), ModelSQL, ModelView): default = {} else: default = default.copy() + default.setdefault('next_consumption_date', None) default.setdefault('consumed', None) return super(Line, cls).copy(lines, default=default)