fix: Sub-Categpry Routing in Item Group Page Listing pills

- Use absolute route even 3-4 sub-category levels down
- Remove scroll from category pills due to accessibility issues
- Arrange sub-category pills alphabetically
This commit is contained in:
marination
2022-03-15 16:27:52 +05:30
parent b03b9ac99f
commit 8264d6b0bc
3 changed files with 6 additions and 8 deletions

View File

@@ -132,7 +132,8 @@ def get_child_groups_for_website(item_group_name, immediate=False, include_self=
return frappe.get_all(
"Item Group",
filters=filters,
fields=["name", "route"]
fields=["name", "route"],
order_by="name"
)
def get_child_item_groups(item_group_name):