mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix: dont fetch entire barcode table in get_item_details (#30131)
This commit is contained in:
@@ -367,7 +367,7 @@ def get_basic_details(args, item, overwrite_warehouse=True):
|
|||||||
if not out[d[1]]:
|
if not out[d[1]]:
|
||||||
out[d[1]] = frappe.get_cached_value('Company', args.company, d[2]) if d[2] else None
|
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)
|
out[fieldname] = item.get(fieldname)
|
||||||
|
|
||||||
if args.get("manufacturer"):
|
if args.get("manufacturer"):
|
||||||
|
|||||||
Reference in New Issue
Block a user