From b6061e5d3f91533f85b063eba461351bb78f1e26 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 24 Mar 2015 17:11:58 +0530 Subject: [PATCH] deleted chart of accounts and style settings doctype --- erpnext/patches.txt | 3 +++ erpnext/setup/doctype/company/test_company.py | 18 +----------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 8c4b7ab774..0e27f3388c 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -134,3 +134,6 @@ erpnext.patches.v5_0.update_time_log_title erpnext.patches.v4_2.repost_reserved_qty erpnext.patches.v4_2.repost_sle_for_si_with_no_warehouse erpnext.patches.v5_0.newsletter +execute:frappe.delete_doc("DocType", "Chart of Accounts") +execute:frappe.delete_doc("DocType", "Style Settings") + diff --git a/erpnext/setup/doctype/company/test_company.py b/erpnext/setup/doctype/company/test_company.py index 240e438b9b..afcc3b149a 100644 --- a/erpnext/setup/doctype/company/test_company.py +++ b/erpnext/setup/doctype/company/test_company.py @@ -8,23 +8,7 @@ import frappe import unittest class TestCompany(unittest.TestCase): - def atest_coa(self): - for country, chart_name in frappe.db.sql("""select country, chart_name - from `tabChart of Accounts` where name = 'Deutscher Kontenplan SKR03'""", as_list=1): - company_doc = frappe.get_doc({ - "doctype": "Company", - "company_name": "_Test Company 2", - "abbr": "_TC2", - "default_currency": "INR", - "country": country, - "chart_of_accounts": chart_name - }) - - company_doc.insert() - self.assertTrue(frappe.db.sql("""select count(*) from tabAccount - where company='_Test Company 2'""")[0][0] > 10) - - frappe.delete_doc("Company", "_Test Company 2") + pass test_records = frappe.get_test_records('Company')