Skip to content

Commit

Permalink
fix: show item name as title instead of item group in BOM (#38478)
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 3a66aef)
  • Loading branch information
SvbZ3r0 authored and mergify[bot] committed Dec 1, 2023
1 parent b9a42a3 commit a96fd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/bom/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]
)
Expand Down

0 comments on commit a96fd4f

Please sign in to comment.