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
  • Loading branch information
SvbZ3r0 authored Dec 1, 2023
1 parent 54f7cf5 commit 3a66aef
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 3a66aef

Please sign in to comment.