diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index cb2c62e7b0a..23ef3bff75b 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -319,7 +319,7 @@ def update_barcode_value(out): # If item has one barcode then update the value of the barcode field if barcode_data and len(barcode_data.get(out.item_code)) == 1: - out['barcode'] = barcode_data.get(out.item_code) + out['barcode'] = barcode_data.get(out.item_code)[0] @frappe.whitelist() def calculate_service_end_date(args, item=None):