rename Profile to User frappe/frappe#470

This commit is contained in:
Rushabh Mehta
2014-03-11 16:15:05 +05:30
parent c379c78fec
commit 7c932003ed
62 changed files with 196 additions and 196 deletions

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:30",
"docstatus": 0,
"modified": "2014-01-20 17:48:34",
"modified": "2014-01-20 17:48:35",
"modified_by": "Administrator",
"owner": "harshada@webnotestech.com"
},
@@ -250,7 +250,7 @@
"no_copy": 1,
"oldfieldname": "resolved_by",
"oldfieldtype": "Link",
"options": "Profile",
"options": "User",
"search_index": 1
},
{

View File

@@ -15,7 +15,7 @@ cur_frm.cscript.onload = function(doc) {
cur_frm.cscript.refresh = function(doc) {
erpnext.hide_naming_series();
if(!doc.__islocal && !cint(doc.email_sent) && !doc.__unsaved
&& inList(frappe.boot.profile.can_write, doc.doctype)) {
&& inList(frappe.boot.user.can_write, doc.doctype)) {
cur_frm.add_custom_button(frappe._('Send'), function() {
return $c_obj(make_doclist(doc.doctype, doc.name), 'send_emails', '', function(r) {
cur_frm.refresh();