From e1d2bef3893127ce8fde18e8b2c250360017786e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 2 Sep 2015 14:07:46 +0530 Subject: [PATCH] [fix] Dont delete Employee while deleting company transactions --- erpnext/setup/doctype/company/delete_company_transactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/company/delete_company_transactions.py b/erpnext/setup/doctype/company/delete_company_transactions.py index cb735c12bf..f7334b1e6d 100644 --- a/erpnext/setup/doctype/company/delete_company_transactions.py +++ b/erpnext/setup/doctype/company/delete_company_transactions.py @@ -22,7 +22,7 @@ def delete_company_transactions(company_name): for doctype in frappe.db.sql_list("""select parent from tabDocField where fieldtype='Link' and options='Company'"""): - if doctype not in ("Account", "Cost Center", "Warehouse", "Budget Detail", "Party Account"): + if doctype not in ("Account", "Cost Center", "Warehouse", "Budget Detail", "Party Account", "Employee"): delete_for_doctype(doctype, company_name) # Clear notification counts