[profile] removed themes
This commit is contained in:
parent
cbb176cdf1
commit
224ad17b1d
@ -1,5 +1,6 @@
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
webnotes.reload_doc("project", "doctype", "project")
|
||||||
for p in webnotes.conn.sql_list("""select name from tabProject"""):
|
for p in webnotes.conn.sql_list("""select name from tabProject"""):
|
||||||
webnotes.bean("Project", p).controller.update_percent_complete()
|
webnotes.bean("Project", p).controller.update_percent_complete()
|
@ -3,11 +3,12 @@ import webnotes
|
|||||||
def execute():
|
def execute():
|
||||||
webnotes.clear_perms("Profile")
|
webnotes.clear_perms("Profile")
|
||||||
webnotes.reload_doc("core", "doctype", "profile")
|
webnotes.reload_doc("core", "doctype", "profile")
|
||||||
|
webnotes.conn.sql("""delete from `tabDefaultValue` where defkey='theme'""")
|
||||||
|
webnotes.delete_doc("Page", "profile-settings")
|
||||||
|
return
|
||||||
|
|
||||||
for name in webnotes.conn.sql("""select name from tabProfile"""):
|
for name in webnotes.conn.sql("""select name from tabProfile"""):
|
||||||
theme = webnotes.conn.get_default("theme", name[0])
|
theme = webnotes.conn.get_default("theme", name[0])
|
||||||
if theme:
|
if theme:
|
||||||
webnotes.conn.set_value("Profile", name[0], "theme", 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")
|
|
Loading…
x
Reference in New Issue
Block a user