[fix] [setup wizard] ignore fiscal year
This commit is contained in:
parent
aa5fb5e50e
commit
424f0c7b84
@ -14,6 +14,7 @@ from frappe.utils.nestedset import get_root_of
|
|||||||
from .default_website import website_maker
|
from .default_website import website_maker
|
||||||
import install_fixtures
|
import install_fixtures
|
||||||
from .sample_data import make_sample_data
|
from .sample_data import make_sample_data
|
||||||
|
from erpnext.accounts.utils import FiscalYearError
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def setup_account(args=None):
|
def setup_account(args=None):
|
||||||
@ -85,7 +86,10 @@ def setup_account(args=None):
|
|||||||
|
|
||||||
frappe.clear_cache()
|
frappe.clear_cache()
|
||||||
|
|
||||||
make_sample_data()
|
try:
|
||||||
|
make_sample_data()
|
||||||
|
except FiscalYearError:
|
||||||
|
pass
|
||||||
except:
|
except:
|
||||||
if args:
|
if args:
|
||||||
traceback = frappe.get_traceback()
|
traceback = frappe.get_traceback()
|
||||||
|
Loading…
Reference in New Issue
Block a user