|
@@ -53,6 +53,13 @@ cur_frm.cscript.refresh = function(doc) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
frappe.ui.form.on('Report', { |
|
|
frappe.ui.form.on('Report', { |
|
|
|
|
|
refresh: function(frm) { |
|
|
|
|
|
if(!frappe.boot.developer_mode) { |
|
|
|
|
|
// make the document read-only |
|
|
|
|
|
frm.set_read_only(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
ref_doctype: function(frm) { |
|
|
ref_doctype: function(frm) { |
|
|
if(frm.doc.ref_doctype) { |
|
|
if(frm.doc.ref_doctype) { |
|
|
frm.trigger("set_doctype_roles") |
|
|
frm.trigger("set_doctype_roles") |
|
|