get standard chart of account if country code not found

This commit is contained in:
Nabin Hait 2015-04-20 11:51:16 +05:30
parent 80f8b7be2f
commit 44aaa56000

View File

@ -85,6 +85,7 @@ def get_charts_for_country(country):
charts.append(content["name"])
country_code = frappe.db.get_value("Country", country, "code")
if country_code:
path = os.path.join(os.path.dirname(__file__), "verified")
for fname in os.listdir(path):
if fname.startswith(country_code) and fname.endswith(".json"):