clear cache before running setup wizard

This commit is contained in:
Rushabh Mehta 2014-05-09 19:20:31 +05:30
parent 9591b8ec93
commit 2667a50334
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ frappe.pages['setup-wizard'].onload = function(wrapper) {
}, 2000);
},
error: function(r) {
var d = msgprint(__("There were errors."));
d.custom_onhide = function() {
frappe.set_route(erpnext.wiz.page_name, "0");

View File

@ -15,6 +15,7 @@ import install_fixtures
@frappe.whitelist()
def setup_account(args=None):
frappe.clear_cache()
if frappe.db.sql("select name from tabCompany"):
frappe.throw(_("Setup Already Complete!!"))