fix: show item name as title instead of item group in BOM (#38478)

Item fields in BOM used to show Item Group when Items were set to show title as link fields. Now they show Item Name instead
This commit is contained in:
Gughan Ravikumar 2023-12-01 11:07:17 +05:30 committed by GitHub
parent 54f7cf59fd
commit 3a66aefd2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1395,7 +1395,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters):
order_by = "idx desc, name, item_name"
fields = ["name", "item_group", "item_name", "description"]
fields = ["name", "item_name", "item_group", "description"]
fields.extend(
[field for field in searchfields if not field in ["name", "item_group", "description"]]
)