[fix] [minor] collapsible section for Item - removed custom script

This commit is contained in:
Rushabh Mehta 2015-10-12 16:45:53 +05:30
parent c03cba9d17
commit d4882653c3
2 changed files with 2069 additions and 2073 deletions

View File

@ -59,10 +59,6 @@ frappe.ui.form.on("Item", {
erpnext.item.toggle_reqd(frm);
erpnext.item.toggle_attributes(frm);
if (frm.is_new() && frm.doc.is_stock_item) {
frm.fields_dict.inventory.collapse(false);
}
},
validate: function(frm){
@ -95,7 +91,6 @@ frappe.ui.form.on("Item", {
},
is_stock_item: function(frm) {
frm.is_new() && frm.fields_dict.inventory.collapse(!frm.doc.is_stock_item);
erpnext.item.toggle_reqd(frm);
},

File diff suppressed because it is too large Load Diff