diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index f4c5c4d25c0..f0c29bc36ef 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -341,7 +341,7 @@ def validate_party_frozen_disabled(party_type, party_name): elif party_type == "Employee": if frappe.db.get_value("Employee", party_name, "status") == "Left": - frappe.msgprint(_("{0} {1} is not active").format(party_type, party_name), PartyDisabled, alert=True) + frappe.msgprint(_("{0} {1} is not active").format(party_type, party_name), alert=True) def get_timeline_data(doctype, name): '''returns timeline data for the past one year'''