fix: broken image style

This commit is contained in:
prssanna
2021-01-22 15:30:19 +05:30
parent dfa78eb27d
commit 2aa1efb70e
6 changed files with 15 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ class ProductFiltersBuilder:
def get_field_filters(self):
filter_fields = [row.fieldname for row in self.doc.filter_fields]
print('FILTERS', self.doc.filter_fields)
meta = frappe.get_meta('Item')
fields = [df for df in meta.fields if df.fieldname in filter_fields]
@@ -52,6 +53,7 @@ class ProductFiltersBuilder:
def get_attribute_fitlers(self):
attributes = [row.attribute for row in self.doc.filter_attributes]
print('ATTRIBUTES', attributes)
attribute_docs = [
frappe.get_doc('Item Attribute', attribute) for attribute in attributes
]