mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +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:
|
else:
|
||||||
variant.set(field.fieldname, item.get(field.fieldname))
|
variant.set(field.fieldname, item.get(field.fieldname))
|
||||||
|
|
||||||
|
if 'description' in allow_fields:
|
||||||
variant.variant_of = item.name
|
variant.variant_of = item.name
|
||||||
variant.has_variants = 0
|
variant.has_variants = 0
|
||||||
if not variant.description:
|
if not variant.description:
|
||||||
|
|||||||
Reference in New Issue
Block a user