fix: unable to enter score in Assessment Result details grid (#25945) (#26031)

This commit is contained in:
Rucha Mahabal 2021-06-12 14:05:12 +05:30 committed by GitHub
parent 400205cc8a
commit cf349aadf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,8 @@ frappe.ui.form.on('Assessment Result', {
if (!frm.doc.__islocal) {
frm.trigger('setup_chart');
}
frm.set_df_property('details', 'read_only', 1);
frm.get_field('details').grid.cannot_add_rows = true;
frm.set_query('course', function() {
return {