From e8270fe21c0a643e4d86fdf73d6c6983254aed6d Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Fri, 12 May 2017 11:23:23 +0530 Subject: [PATCH] [fix] minor fix in get_context for item variants (#8791) --- erpnext/stock/doctype/item/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index 9b9eb63050..f86417135d 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 = {}