|
|
@@ -74,7 +74,7 @@ frappe.ui.form.Control = Class.extend({ |
|
|
|
frappe.model.get_doc(this.doctype, this.docname), this.perm || (this.frm && this.frm.perm), explain); |
|
|
|
|
|
|
|
// Match parent grid controls read only status |
|
|
|
if (status === 'Write' && (this.grid || (this.layout && this.layout.grid))) { |
|
|
|
if (status === 'Write' && (this.grid || (this.layout && this.layout.grid) && !cint(this.df.allow_on_submit))) { |
|
|
|
var grid = this.grid || this.layout.grid; |
|
|
|
if (grid.display_status == 'Read') { |
|
|
|
status = 'Read'; |
|
|
|