diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 8c4b7ab7749..0e27f3388ca 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 240e438b9b1..afcc3b149a9 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')