From f85b08d2f549a735f230b4b8c58289a14e6889c4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 18 Jun 2025 17:26:55 +0530 Subject: [PATCH] fix: setup wizard load chart of accounts and fiscal year on change of country (backport #48125) (#48128) fix: setup wizard load chart of accounts and fiscal year on change of country (#48125) (cherry picked from commit 14f0569a391fce6a7f89b8981e0f51cd9a8b5538) Co-authored-by: Diptanil Saha --- erpnext/public/js/setup_wizard.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/setup_wizard.js b/erpnext/public/js/setup_wizard.js index 2ced08ed5d2..20fdbcd9b13 100644 --- a/erpnext/public/js/setup_wizard.js +++ b/erpnext/public/js/setup_wizard.js @@ -55,9 +55,13 @@ erpnext.setup.slides_settings = [ onload: function (slide) { this.bind_events(slide); - this.load_chart_of_accounts(slide); - this.set_fy_dates(slide); }, + + before_show: function () { + this.load_chart_of_accounts(this); + this.set_fy_dates(this); + }, + validate: function () { if (!this.validate_fy_dates()) { return false;