[fix] Adding rows not allowed in Variant table in Manage Variants and Item form
This commit is contained in:
parent
0910fc3b25
commit
db938762c7
@ -216,7 +216,7 @@
|
|||||||
"options": "Variant Attribute",
|
"options": "Variant Attribute",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"precision": "",
|
"precision": "",
|
||||||
"read_only": 0
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "inventory",
|
"fieldname": "inventory",
|
||||||
@ -900,9 +900,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icon": "icon-tag",
|
"icon": "icon-tag",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"max_attachments": 1,
|
"max_attachments": 1,
|
||||||
"modified": "2015-07-01 17:20:18.204558",
|
"modified": "2015-07-09 02:23:47.669199",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Item",
|
"name": "Item",
|
||||||
|
@ -42,6 +42,10 @@ frappe.ui.form.on("Manage Variants", {
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onload_post_render: function(frm) {
|
||||||
|
frm.get_field("variants").grid.cannot_add_rows = true;
|
||||||
|
},
|
||||||
|
|
||||||
item_code:function(frm) {
|
item_code:function(frm) {
|
||||||
return frappe.call({
|
return frappe.call({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user