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

This commit is contained in:
Rucha Mahabal 2021-11-09 16:04:52 +05:30
parent da22744e0f
commit 88b5bda34b

View File

@ -12,7 +12,7 @@ from frappe.utils import today
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: