fix(India setup): setup company independent fixtures for patch (#28299)

(cherry picked from commit 88b5bda34b)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
mergify[bot]
2021-11-09 17:50:38 +05:30
committed by GitHub
parent 077073f9a3
commit 47b609ef1a

View File

@@ -18,7 +18,7 @@ from erpnext.regional.india import states
def setup(company=None, patch=True):
# Company independent fixtures should be called only once at the first company setup
if frappe.db.count('Company', {'country': 'India'}) <=1:
if patch or frappe.db.count('Company', {'country': 'India'}) <=1:
setup_company_independent_fixtures(patch=patch)
if not patch: