deleted chart of accounts and style settings doctype

This commit is contained in:
Nabin Hait 2015-03-24 17:11:58 +05:30
parent a3eec1603a
commit b6061e5d3f
2 changed files with 4 additions and 17 deletions

View File

@ -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")

View File

@ -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')