Merge pull request #173 from neelbhanushali/email-notifications-in-activity

Email Notifications in Lead/Deal Activity
This commit is contained in:
Shariq Ansari 2024-05-13 15:58:45 +05:30 committed by GitHub
commit 7ddb782165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -110,9 +110,10 @@ def get_deal_activities(name):
}
activities.append(activity)
for communication in docinfo.communications:
for communication in docinfo.communications + docinfo.automated_messages:
activity = {
"activity_type": "communication",
"communication_type": communication.communication_type,
"creation": communication.creation,
"data": {
"subject": communication.subject,
@ -222,9 +223,10 @@ def get_lead_activities(name):
}
activities.append(activity)
for communication in docinfo.communications:
for communication in docinfo.communications + docinfo.automated_messages:
activity = {
"activity_type": "communication",
"communication_type": communication.communication_type,
"creation": communication.creation,
"data": {
"subject": communication.subject,

View File

@ -386,6 +386,12 @@
{{ __(timeAgo(activity.creation)) }}
</div>
</Tooltip>
<Badge
v-if="activity.communication_type == 'Automated Message'"
:label="__('Notification')"
variant="subtle"
theme="green"
/>
</div>
<div class="flex gap-0.5">
<Tooltip :text="__('Reply')">
@ -834,6 +840,7 @@ import {
Dropdown,
TextEditor,
Avatar,
Badge,
createResource,
call,
} from 'frappe-ui'