mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
do not copy template description to variant if not in allow fields (#13726)
This commit is contained in:
@@ -272,6 +272,7 @@ def copy_attributes_to_variant(item, variant):
|
||||
else:
|
||||
variant.set(field.fieldname, item.get(field.fieldname))
|
||||
|
||||
if 'description' in allow_fields:
|
||||
variant.variant_of = item.name
|
||||
variant.has_variants = 0
|
||||
if not variant.description:
|
||||
|
||||
Reference in New Issue
Block a user