[fix] Dont delete Employee while deleting company transactions

This commit is contained in:
Nabin Hait 2015-09-02 14:07:46 +05:30
parent 0ca3e3d89e
commit e1d2bef389

View File

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