feat(Communication): Move Timeline DocType and Name to Dynamic Links (#17593)
* fix: ambigious error
This commit is contained in:
parent
a1f31e8444
commit
29d4ae6716
@ -463,8 +463,8 @@ def get_timeline_data(doctype, name):
|
||||
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}
|
||||
|
Loading…
Reference in New Issue
Block a user