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

This commit is contained in:
Rucha Mahabal
2021-06-12 13:40:58 +05:30
committed by GitHub
parent 348f04ca82
commit 0ed33aa4e8

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 {