mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 14:38:26 +00:00
fix: Item Attribute Order fix
This commit is contained in:
@@ -173,7 +173,6 @@ def get_attributes_and_values(item_code):
|
||||
valid_attribute_values = valid_options.get(attr.attribute, [])
|
||||
ordered_values = ordered_attribute_value_map.get(attr.attribute, [])
|
||||
attr['values'] = [v for v in ordered_values if v in valid_attribute_values]
|
||||
attr['values'] = valid_attribute_values
|
||||
|
||||
return attributes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user