[complete setup] [usability] refresh after success
This commit is contained in:
parent
b0f69cdd88
commit
7edb191661
@ -75,12 +75,17 @@ $.extend(erpnext.complete_setup, {
|
|||||||
if(!data) return;
|
if(!data) return;
|
||||||
$(this).set_working();
|
$(this).set_working();
|
||||||
$c_obj('Setup Control','setup_account',data,function(r, rt){
|
$c_obj('Setup Control','setup_account',data,function(r, rt){
|
||||||
|
if(!r.exc) {
|
||||||
sys_defaults = r.message;
|
sys_defaults = r.message;
|
||||||
user_fullname = r.message.user_fullname;
|
user_fullname = r.message.user_fullname;
|
||||||
wn.boot.user_info[user].fullname = user_fullname;
|
wn.boot.user_info[user].fullname = user_fullname;
|
||||||
d.hide();
|
d.hide();
|
||||||
$('header').toggle(true);
|
$('header').toggle(true);
|
||||||
wn.container.wntoolbar.set_user_name();
|
wn.container.wntoolbar.set_user_name();
|
||||||
|
|
||||||
|
setTimeout(function() { window.location.reload(); }, 3000);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ class DocType:
|
|||||||
self.create_email_digest()
|
self.create_email_digest()
|
||||||
|
|
||||||
webnotes.clear_cache()
|
webnotes.clear_cache()
|
||||||
msgprint("Company setup is complete. Please refresh the page before continuing.")
|
msgprint("Company setup is complete. This page will be refreshed in a moment.")
|
||||||
|
|
||||||
import webnotes.utils
|
import webnotes.utils
|
||||||
user_fullname = (args.get('first_name') or '') + (args.get('last_name')
|
user_fullname = (args.get('first_name') or '') + (args.get('last_name')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user