[item] toggle reqd, fixes #2832
diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js
index eec8ec2..0face22 100644
--- a/erpnext/stock/doctype/item/item.js
+++ b/erpnext/stock/doctype/item/item.js
@@ -109,6 +109,9 @@
 			method: "copy_specification_from_item_group"
 		});
 	},
+	is_stock_item: function(frm) {
+		erpnext.item.toggle_reqd(frm);
+	}
 });
 
 $.extend(erpnext.item, {