feat(Communication): Move Timeline DocType and Name to Dynamic Links (#17593)
* fix: ambigious error
diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py
index f25473e..29bae4b 100644
--- a/erpnext/accounts/party.py
+++ b/erpnext/accounts/party.py
@@ -463,8 +463,8 @@
after = add_years(None, -1).strftime('%Y-%m-%d')
group_by='group by date(creation)'
- data = get_communication_data(doctype, name,
- fields=fields, after=after, group_by=group_by, as_dict=False)
+ data = get_communication_data(doctype, name, after=after, group_by='group by date(`tabCommunication`.creation)',
+ fields='date(`tabCommunication`.creation), count(`tabCommunication`.name)',as_dict=False)
# fetch and append data from Activity Log
data += frappe.db.sql("""select {fields}