fix: Set readonly without docstatus
This commit is contained in:
parent
1dab6ae90b
commit
b099414cf8
1 changed files with 1 additions and 2 deletions
|
|
@ -35,8 +35,7 @@ frappe.ui.form.on('Data Import Beta', {
|
|||
|
||||
if (frm.doc.status === 'Success') {
|
||||
// set form as readonly
|
||||
frm.doc.docstatus = 1;
|
||||
frm.page.clear_secondary_action();
|
||||
frm.fields.forEach(f => f.df.read_only = 1);
|
||||
frm.disable_save();
|
||||
frm.events.show_success_message(frm);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue