Fixed Profile to User, Desktop Text
This commit is contained in:
parent
f3810ae532
commit
2c8ee08d0e
3 changed files with 4 additions and 3 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue