fix: Variant naming if optional attributes

This commit is contained in:
Faris Ansari 2019-05-03 13:57:20 +05:30
parent cb03bb1c00
commit ab14892fc5

View File

@ -309,7 +309,7 @@ def make_variant_item_code(template_item_code, template_item_name, variant):
}, as_dict=True)
if not item_attribute:
return
continue
# frappe.throw(_('Invalid attribute {0} {1}').format(frappe.bold(attr.attribute),
# frappe.bold(attr.attribute_value)), title=_('Invalid Attribute'),
# exc=InvalidItemAttributeValueError)