Merge branch 'navupdate' of github.com:webnotes/erpnext into navupdate

This commit is contained in:
Anand Doshi 2012-03-01 12:17:54 +05:30
commit 91797904c9

View File

@ -37,6 +37,12 @@ def execute():
reload_doc('home', 'page', 'activity')
reload_doc('core', 'doctype', 'profile')
# update user_image in profile
for p in webnotes.conn.sql("""select name, file_list from tabProfile
where ifnull(file_list,'')!=''"""):
fid = p[1].split('\n')[0].split(',')[1]
webnotes.conn.set_value('Profile', p[0], 'user_image', fid)
webnotes.conn.set_value('Control Panel', 'Control Panel', 'home_page',
'desktop')