Merge pull request #28294 from ruchamahabal/fix-hr-patch-breaking

fix(India setup): setup company independent fixtures for patch
This commit is contained in:
Deepesh Garg 2021-11-09 17:27:13 +05:30 committed by GitHub
commit 20bc613b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: