changeset 699d42badcf0 in modules/product_kit:default details: https://hg.tryton.org/modules/product_kit?cmd=changeset&node=699d42badcf0 description: Copy components without parent_product when duplicating templates
issue11854 review418561003 diffstat: product.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r f66624526d4a -r 699d42badcf0 product.py --- a/product.py Mon Oct 31 17:23:34 2022 +0100 +++ b/product.py Thu Nov 03 09:15:38 2022 +0100 @@ -49,7 +49,7 @@ 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, {