[fix] mark new row as Custom Field in Customize Form to make it draggable
This commit is contained in:
parent
34bb97c69d
commit
b181b81ebf
1 changed files with 4 additions and 0 deletions
|
|
@ -97,6 +97,10 @@ frappe.ui.form.on("Customize Form Field", {
|
|||
msgprint(__("Cannot delete standard field. You can hide it if you want"));
|
||||
throw "cannot delete custom field";
|
||||
}
|
||||
},
|
||||
fields_add: function(frm, cdt, cdn) {
|
||||
var f = frappe.model.get_doc(cdt, cdn);
|
||||
f.is_custom_field = 1;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue