From bfc055722c471bd54355e8562f7621194fc9260d Mon Sep 17 00:00:00 2001 From: Smit Vora Date: Fri, 27 Oct 2023 14:03:32 +0530 Subject: [PATCH] fix: correct condition to evaluate if company was created (cherry picked from commit 3e3e10652a53c0937f1223a8539697aafa66dfae) --- india_compliance/setup_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/india_compliance/setup_wizard.py b/india_compliance/setup_wizard.py index 5b308509c..b9a34469e 100644 --- a/india_compliance/setup_wizard.py +++ b/india_compliance/setup_wizard.py @@ -51,7 +51,7 @@ def setup_company_gstin_details(params): if not params.company_gstin: return - if not (params.company_name or frappe.db.exists("Company", params.company_name)): + if not (params.company_name and frappe.db.exists("Company", params.company_name)): return gstin_info = frappe._dict()