changeset 9b76578d8dfc in modules/product_kit:6.6
details:
https://hg.tryton.org/modules/product_kit?cmd=changeset&node=9b76578d8dfc
description:
Copy components without parent_product when duplicating templates
issue11854
review418561003
(grafted from 699d42badcf0aed4fbe232d0e401e04ddad6bab6)
diffstat:
product.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d7f66473d032 -r 9b76578d8dfc product.py
--- a/product.py Mon Oct 31 17:23:33 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, {