fix(test): Convert values to list

This commit is contained in:
Faris Ansari 2019-05-07 13:29:00 +05:30
parent ab14892fc5
commit fde4fa7b60

View File

@ -102,7 +102,7 @@ def get_item_codes_by_attributes(attribute_filters, template_item_code=None):
for attribute, values in attribute_filters.items():
attribute_values = values
if isinstance(attribute_values, frappe.string_types):
if not isinstance(attribute_values, list):
attribute_values = [attribute_values]
if not attribute_values: continue