From 5a15dcc0600ea57572dc422da33b3b0695e58901 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Tue, 24 Sep 2019 19:16:43 +0530 Subject: [PATCH] fix(Stock): item variant description (#19135) --- erpnext/controllers/item_variant.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/controllers/item_variant.py b/erpnext/controllers/item_variant.py index 4230d17ff0e..79cd216640d 100644 --- a/erpnext/controllers/item_variant.py +++ b/erpnext/controllers/item_variant.py @@ -292,6 +292,7 @@ def copy_attributes_to_variant(item, variant): if not variant.description: variant.description = "" + else: if item.variant_based_on=='Item Attribute': if variant.attributes: attributes_description = item.description + " " @@ -299,7 +300,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"""