From 16486059505dec516b66f17d46700fc5684bf154 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 5 Aug 2015 15:55:53 +0530 Subject: [PATCH] [fix] Disabled OHADA system while fetching COA based on country --- .../account/chart_of_accounts/chart_of_accounts.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py b/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py index 7729d22377..ce3a7fddb7 100644 --- a/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py +++ b/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py @@ -92,13 +92,13 @@ def get_charts_for_country(country): with open(os.path.join(path, fname), "r") as f: _get_chart_name(f.read()) - countries_use_OHADA_system = ["Benin", "Burkina Faso", "Cameroon", "Central African Republic", "Comoros", - "Congo", "Ivory Coast", "Gabon", "Guinea", "Guinea Bissau", "Equatorial Guinea", "Mali", "Niger", - "Replica of Democratic Congo", "Senegal", "Chad", "Togo"] - - if country in countries_use_OHADA_system: - with open(os.path.join(os.path.dirname(__file__), "syscohada_syscohada_chart_template.json"), "r") as f: - _get_chart_name(f.read()) + # countries_use_OHADA_system = ["Benin", "Burkina Faso", "Cameroon", "Central African Republic", "Comoros", + # "Congo", "Ivory Coast", "Gabon", "Guinea", "Guinea Bissau", "Equatorial Guinea", "Mali", "Niger", + # "Replica of Democratic Congo", "Senegal", "Chad", "Togo"] + # + # if country in countries_use_OHADA_system: + # with open(os.path.join(os.path.dirname(__file__), "syscohada_syscohada_chart_template.json"), "r") as f: + # _get_chart_name(f.read()) if len(charts) != 1: charts.append("Standard")