[fix] Clear notification count while deleting company transactions
diff --git a/erpnext/setup/doctype/company/delete_company_transactions.py b/erpnext/setup/doctype/company/delete_company_transactions.py
index 0253674..cb735c1 100644
--- a/erpnext/setup/doctype/company/delete_company_transactions.py
+++ b/erpnext/setup/doctype/company/delete_company_transactions.py
@@ -6,6 +6,7 @@
from frappe.utils import cint
from frappe import _
+from frappe.desk.notifications import clear_notifications
@frappe.whitelist()
def delete_company_transactions(company_name):
@@ -23,6 +24,9 @@
tabDocField where fieldtype='Link' and options='Company'"""):
if doctype not in ("Account", "Cost Center", "Warehouse", "Budget Detail", "Party Account"):
delete_for_doctype(doctype, company_name)
+
+ # Clear notification counts
+ clear_notifications()
def delete_for_doctype(doctype, company_name):
meta = frappe.get_meta(doctype)