mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix: Add parent for all-products page
This commit is contained in:
@@ -15,6 +15,9 @@ def get_context(context):
|
|||||||
|
|
||||||
context.items = get_products_for_website(field_filters, attribute_filters, search)
|
context.items = get_products_for_website(field_filters, attribute_filters, search)
|
||||||
|
|
||||||
|
# Add homepage as parent
|
||||||
|
context.parents = [{"name": frappe._("Home"), "route":"/"}]
|
||||||
|
|
||||||
product_settings = get_product_settings()
|
product_settings = get_product_settings()
|
||||||
context.field_filters = get_field_filter_data() \
|
context.field_filters = get_field_filter_data() \
|
||||||
if product_settings.enable_field_filters else []
|
if product_settings.enable_field_filters else []
|
||||||
|
|||||||
Reference in New Issue
Block a user