mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
profile: form is now my settings page, removed (Page, profile-settings)
This commit is contained in:
13
patches/november_2012/add_theme_to_profile.py
Normal file
13
patches/november_2012/add_theme_to_profile.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.clear_perms("Profile")
|
||||
webnotes.reload_doc("core", "doctype", "profile")
|
||||
|
||||
for name in webnotes.conn.sql("""select name from tabProfile"""):
|
||||
theme = webnotes.conn.get_default("theme", name[0])
|
||||
if theme:
|
||||
webnotes.conn.set_value("Profile", name[0], "theme", theme)
|
||||
|
||||
webnotes.conn.sql("""delete from `tabDefaultValue` where defkey='theme'""")
|
||||
webnotes.delete_doc("Page", "profile-settings")
|
||||
@@ -691,4 +691,8 @@ patch_list = [
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'communication_sender_and_recipient',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'add_theme_to_profile',
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user