fix: dont fetch entire barcode table in get_item_details (#30131) (#30666)

(cherry picked from commit 64905188c4)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2022-04-10 11:52:35 +05:30
committed by GitHub
parent c8780b0062
commit 5b2b76c4a7

View File

@@ -329,7 +329,7 @@ def get_basic_details(args, item, overwrite_warehouse=True):
if not out[d[1]]:
out[d[1]] = frappe.get_cached_value('Company', args.company, d[2]) if d[2] else None
for fieldname in ("item_name", "item_group", "barcodes", "brand", "stock_uom"):
for fieldname in ("item_name", "item_group", "brand", "stock_uom"):
out[fieldname] = item.get(fieldname)
if args.get("manufacturer"):