diff --git a/crm/api/activities.py b/crm/api/activities.py index 5dd38ff2..ef42a929 100644 --- a/crm/api/activities.py +++ b/crm/api/activities.py @@ -95,6 +95,16 @@ def get_deal_activities(name): } activities.append(activity) + for comment in docinfo.comments: + activity = { + "activity_type": "comment", + "creation": comment.creation, + "owner": comment.owner, + "content": comment.content, + "is_lead": False, + } + activities.append(activity) + for communication in docinfo.communications: activity = { "activity_type": "communication", @@ -191,6 +201,16 @@ def get_lead_activities(name): } activities.append(activity) + for comment in docinfo.comments: + activity = { + "activity_type": "comment", + "creation": comment.creation, + "owner": comment.owner, + "content": comment.content, + "is_lead": True, + } + activities.append(activity) + for communication in docinfo.communications: activity = { "activity_type": "communication", diff --git a/frontend/src/components/Activities.vue b/frontend/src/components/Activities.vue index 1a42d733..433bfe67 100644 --- a/frontend/src/components/Activities.vue +++ b/frontend/src/components/Activities.vue @@ -404,6 +404,31 @@ +