fix: Add demo setup check in setup wizard

This commit is contained in:
Deepesh Garg
2023-07-07 10:49:56 +05:30
parent d5bdd9387a
commit bb5387fa5d
5 changed files with 25 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ def clear_demo_data():
def create_demo_company():
company = erpnext.get_default_company()
company = frappe.db.get_all("Company")[0].name
company_doc = frappe.get_doc("Company", company)
# Make a dummy company