diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index 2a4e31b9d272ae6ececc23634c6b904503b4e3a2..03ccbe2803b3b722cd3b1d74f20023e6acfc31b8 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -878,7 +878,7 @@ def get_timeline_data(doctype, name, included_doctypes=None): data = list(communication_data) for doctype in included_doctypes: - if not frappe.has_permission(doctype, "read"): + if not frappe.has_permission(doctype["name"], "read"): continue data.extend(