Merge pull request #3610 from nabinhait/variants
Adding rows not allowed in Variant table in Manage Variants and Item
This commit is contained in:
commit
f80c09290e
@ -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",
|
||||||
@ -902,7 +902,7 @@
|
|||||||
"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",
|
||||||
|
@ -43,6 +43,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({
|
||||||
method: "get_item_details",
|
method: "get_item_details",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user