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

(cherry picked from commit 8264d6b0bc)
This commit is contained in:
marination
2022-03-15 16:27:52 +05:30
committed by mergify-bot
parent 2c5e76d542
commit a56fd20ab4
3 changed files with 6 additions and 8 deletions

View File

@@ -133,7 +133,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):