Merge pull request #4156 from rmehta/item-section-fix

[fix] [minor] collapsible section for Item - removed custom script
This commit is contained in:
Rushabh Mehta 2015-10-12 18:35:38 +05:30
commit 5f349a67c9
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