From e48bad19e23c871a29d83c2dc40b04df60e8bb50 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Mon, 25 Sep 2023 10:32:29 +0200 Subject: [PATCH] In create(), copy vlist before update. --- quality.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quality.py b/quality.py index dda50ca..ae3bb02 100644 --- a/quality.py +++ b/quality.py @@ -92,6 +92,7 @@ class QualitySample(ModelSQL, ModelView): pool = Pool() Config = pool.get('quality.configuration') + vlist = [x.copy() for x in vlist] sequence = Config(1).sample_sequence for value in vlist: if not value.get('code'):