mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
[fix] minor fix in get_context for item variants (#8791)
This commit is contained in:
committed by
Nabin Hait
parent
62c7deee00
commit
e8270fe21c
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user