diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index d6c25469ff2ddced37073a8c2e5fe4589ef74e44..ec0dd3fe41be55254381d161db01ca414cb64713 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -897,7 +897,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(