fix: Variant naming if optional attributes
This commit is contained in:
parent
cb03bb1c00
commit
ab14892fc5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user