chore: Removing Item's Website section & references

- Removed old onboarding slide json and `create_onboarding_docs` methods
- Removed website sections from Item master
- Removed references to item website fields
- Shifted Item doctype website methods to Website Item
- Removed WebsiteGenerator from Item doctype
- Website Items in Homepage Products section
- Removed redundant code from item_group.py
- Fix: Item field filters won’t appear in website
This commit is contained in:
marination
2021-02-19 12:50:01 +05:30
parent eef9cf152f
commit 025574d9b5
28 changed files with 139 additions and 1161 deletions

View File

@@ -48,8 +48,7 @@ class ProductFiltersBuilder:
values = [d.name for d in frappe.get_all(doctype, filters)]
# Remove None
if None in values:
values.remove(None)
if None in values: values.remove(None)
if values:
filter_data.append([df, values])

View File

@@ -111,7 +111,7 @@ class ProductSearch(FullTextSearch):
)
def get_all_published_items():
return frappe.get_all("Item", filters={"variant_of": "", "show_in_website": 1},pluck="name")
return frappe.get_all("Website Item", filters={"variant_of": "", "published": 1}, pluck="item_code")
def update_index_for_path(path):
search = ProductSearch(INDEX_NAME)