Skip to content

Commit

Permalink
fix: e_commerce_settings.py
Browse files Browse the repository at this point in the history
Update get meta from Item to Website Item doctype to check validate_field_filters
  • Loading branch information
MostafaFekry authored and ankush committed Mar 28, 2022
1 parent fc5fd34 commit 86c5f4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def validate_field_filters(self):
if not (self.enable_field_filters and self.filter_fields):
return

item_meta = frappe.get_meta("Item")
item_meta = frappe.get_meta("Website Item")
valid_fields = [df.fieldname for df in item_meta.fields if df.fieldtype in ["Link", "Table MultiSelect"]]

for f in self.filter_fields:
Expand Down

0 comments on commit 86c5f4d

Please sign in to comment.