|
|
@@ -47,8 +47,14 @@ frappe.ui.form.Control = Class.extend({ |
|
|
|
// as strings based on permissions |
|
|
|
get_status: function(explain) { |
|
|
|
if(!this.doctype && !this.docname) { |
|
|
|
if (cint(this.df.hidden)) { |
|
|
|
if(explain) console.log("By Hidden: None"); |
|
|
|
return "None"; |
|
|
|
} |
|
|
|
|
|
|
|
return "Write"; |
|
|
|
} |
|
|
|
|
|
|
|
var status = frappe.perm.get_field_display_status(this.df, |
|
|
|
frappe.model.get_doc(this.doctype, this.docname), this.perm || (this.frm && this.frm.perm), explain); |
|
|
|
|
|
|
|