mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 14:58:24 +00:00
[fix] Dont delete Employee while deleting company transactions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user