[fix] [minor] collapsible section for Item - removed custom script
This commit is contained in:
parent
c03cba9d17
commit
d4882653c3
@ -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);
|
||||
},
|
||||
|
||||
|
@ -389,7 +389,8 @@
|
||||
"allow_on_submit": 0,
|
||||
"bold": 0,
|
||||
"collapsible": 1,
|
||||
"collapsible_depends_on": "",
|
||||
"collapsible_depends_on": "is_stock_item",
|
||||
"depends_on": "is_stock_item",
|
||||
"fieldname": "inventory",
|
||||
"fieldtype": "Section Break",
|
||||
"hidden": 0,
|
||||
@ -2090,7 +2091,7 @@
|
||||
"issingle": 0,
|
||||
"istable": 0,
|
||||
"max_attachments": 1,
|
||||
"modified": "2015-09-07 15:51:26",
|
||||
"modified": "2015-10-12 07:13:32.613254",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Item",
|
||||
|
Loading…
Reference in New Issue
Block a user