fix: leave application status fix

This commit is contained in:
Anupam
2020-09-22 11:29:17 +05:30
parent bd5b37dbb7
commit d5a33f4604

View File

@@ -85,6 +85,10 @@ frappe.ui.form.on("Leave Application", {
frm.set_value('employee', perm['Employee'].map(perm_doc => perm_doc.doc)[0]);
}
}
if (frm.doc.docstatus) {
frm.set_df_property("status", "read_only", 1);
}
},
employee: function(frm) {