From 24d5b999d2e66c33952284de58f3de9bdb5d60d2 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 3 Nov 2022 09:15:38 +0100 Subject: [PATCH] Copy components without parent_product when duplicating templates issue11854 review418561003 --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index 04091e62f2..cfb9003328 100644 --- a/product.py +++ b/product.py @@ -49,7 +49,7 @@ class Template(metaclass=PoolMeta): to_copy = [] for template, new_template in zip(templates, new_templates): to_copy.extend( - c for c in template.components if not c.product) + c for c in template.components if not c.parent_product) old2new[template.id] = new_template.id if to_copy: Component.copy(to_copy, {