mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
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")
|
||||
@@ -695,4 +695,8 @@ patch_list = [
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'update_delivered_billed_percentage_for_pos',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'add_theme_to_profile',
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user