Browse Source

added set_only_once property in docfield

version-14
Nabin Hait 11 years ago
parent
commit
876a748f90
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      frappe/public/js/frappe/model/perm.js

+ 5
- 0
frappe/public/js/frappe/model/perm.js View File

@@ -190,6 +190,11 @@ $.extend(frappe.perm, {
}
if(explain) console.log("By Read Only:" + status);
if(status==="Write" && df.set_only_once && !doc.__islocal) {
status = "Read";
}
if(explain) console.log("By Set Only Once:" + status);
return status;
},
});

Loading…
Cancel
Save