[fix] bom client script
diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js
index 65ecfd8..f0eebb1 100644
--- a/erpnext/manufacturing/doctype/bom/bom.js
+++ b/erpnext/manufacturing/doctype/bom/bom.js
@@ -61,7 +61,7 @@
var d = locals[cdt][cdn];
if (d.item_code) {
return frappe.call({
- doc: cur_frm.doc,
+ doc: doc,
method: "get_bom_material_detail",
args: {
'item_code': d.item_code,
@@ -234,5 +234,3 @@
cur_frm.cscript.image = function() {
refresh_field("image_view");
}
-
-