Merge pull request #9721 from prssanna/editable-grid-fix-develop

fix: Set fields in grid form as read only for non-editable grids
This commit is contained in:
mergify[bot] 2020-03-17 10:37:11 +00:00 committed by GitHub
commit a5e6aebdc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,9 @@ export default class GridRow {
if(me.grid.allow_on_grid_editing() && me.grid.is_editable()) {
// pass
} else {
if (!me.grid.is_editable()) {
me.docfields.map(df => df.read_only = 1);
}
me.toggle_view();
return false;
}