Fixed Profile to User, Desktop Text

This commit is contained in:
Anand Doshi 2014-03-11 16:55:14 +05:30
parent f3810ae532
commit 2c8ee08d0e
3 changed files with 4 additions and 3 deletions

View file

@ -287,8 +287,9 @@ def restore(db_name, source_sql, verbose=True, force=False):
@cmd
def add_system_manager(email, first_name=None, last_name=None):
import frappe.utils.user
frappe.connect()
frappe.profile.add_system_manager(email, first_name, last_name)
frappe.utils.user.add_system_manager(email, first_name, last_name)
frappe.db.commit()
frappe.destroy()

View file

@ -14,7 +14,7 @@
color: white;
padding-top: 5px;
text-align: center;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 1), 1px 1px 5px rgba(0, 0, 0, 0.3);
text-shadow: 1px 1px 3px rgba(0, 0, 0, 1), 0px 3px 15px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {

View file

@ -5,7 +5,7 @@ from frappe.model import rename_field
def execute():
tables = frappe.db.sql_list("show tables")
if "tabUser" not in tables:
frappe.rename_doc("DocType", "tabUser", "User", force=True)
frappe.rename_doc("DocType", "Profile", "User", force=True)
frappe.reload_doc("website", "doctype", "website_route_permission")
frappe.reload_doc("website", "doctype", "blogger")