diff --git a/erpnext/controllers/item_variant.py b/erpnext/controllers/item_variant.py index dee71dc9448..29f8dd57026 100644 --- a/erpnext/controllers/item_variant.py +++ b/erpnext/controllers/item_variant.py @@ -283,7 +283,7 @@ def copy_attributes_to_variant(item, variant): if 'description' not in allow_fields: if not variant.description: variant.description = "" - + else: if item.variant_based_on=='Item Attribute': if variant.attributes: attributes_description = item.description + " " @@ -291,7 +291,7 @@ def copy_attributes_to_variant(item, variant): attributes_description += "
" + d.attribute + ": " + cstr(d.attribute_value) + "
" if attributes_description not in variant.description: - variant.description += attributes_description + variant.description = attributes_description def make_variant_item_code(template_item_code, template_item_name, variant): """Uses template's item code and abbreviations to make variant's item code"""