From af7d9293864fdd0c33b404fcae8ec25c43673132 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 2 Jun 2016 12:39:14 +0530 Subject: [PATCH] [minor] fix supplier/customer and editable columns in BOM --- erpnext/manufacturing/doctype/bom/bom.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index aeacf11271..6f45ff2ed7 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -4,6 +4,14 @@ frappe.provide("erpnext.bom"); frappe.ui.form.on("BOM", { + setup: function(frm) { + frm.get_field('items').grid.editable_fields = [ + {fieldname: 'item_code', columns: 4}, + {fieldname: 'item_name', columns: 3}, + {fieldname: 'qty', columns: 2}, + {fieldname: 'rate', columns: 2} + ]; + }, onload_post_render: function(frm) { frm.get_field("items").grid.set_multiple_add("item_code", "qty"); },