mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 03:01:22 +00:00
fix(India setup): setup company independent fixtures for patch (#28304)
(cherry picked from commit 88b5bda34b)
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ from erpnext.regional.india import states
|
|||||||
|
|
||||||
def setup(company=None, patch=True):
|
def setup(company=None, patch=True):
|
||||||
# Company independent fixtures should be called only once at the first company setup
|
# 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)
|
setup_company_independent_fixtures(patch=patch)
|
||||||
|
|
||||||
if not patch:
|
if not patch:
|
||||||
|
|||||||
Reference in New Issue
Block a user