diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index 9b9eb63050a..f86417135d2 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -325,7 +325,7 @@ class Item(WebsiteGenerator): def set_disabled_attributes(self, context): """Disable selection options of attribute combinations that do not result in a variant""" - if not self.attributes: + if not self.attributes or not self.has_variants: return context.disabled_attributes = {}