Merge pull request #173 from neelbhanushali/email-notifications-in-activity
Email Notifications in Lead/Deal Activity
This commit is contained in:
commit
7ddb782165
@ -110,9 +110,10 @@ def get_deal_activities(name):
|
|||||||
}
|
}
|
||||||
activities.append(activity)
|
activities.append(activity)
|
||||||
|
|
||||||
for communication in docinfo.communications:
|
for communication in docinfo.communications + docinfo.automated_messages:
|
||||||
activity = {
|
activity = {
|
||||||
"activity_type": "communication",
|
"activity_type": "communication",
|
||||||
|
"communication_type": communication.communication_type,
|
||||||
"creation": communication.creation,
|
"creation": communication.creation,
|
||||||
"data": {
|
"data": {
|
||||||
"subject": communication.subject,
|
"subject": communication.subject,
|
||||||
@ -222,9 +223,10 @@ def get_lead_activities(name):
|
|||||||
}
|
}
|
||||||
activities.append(activity)
|
activities.append(activity)
|
||||||
|
|
||||||
for communication in docinfo.communications:
|
for communication in docinfo.communications + docinfo.automated_messages:
|
||||||
activity = {
|
activity = {
|
||||||
"activity_type": "communication",
|
"activity_type": "communication",
|
||||||
|
"communication_type": communication.communication_type,
|
||||||
"creation": communication.creation,
|
"creation": communication.creation,
|
||||||
"data": {
|
"data": {
|
||||||
"subject": communication.subject,
|
"subject": communication.subject,
|
||||||
|
|||||||
@ -386,6 +386,12 @@
|
|||||||
{{ __(timeAgo(activity.creation)) }}
|
{{ __(timeAgo(activity.creation)) }}
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
<Badge
|
||||||
|
v-if="activity.communication_type == 'Automated Message'"
|
||||||
|
:label="__('Notification')"
|
||||||
|
variant="subtle"
|
||||||
|
theme="green"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-0.5">
|
<div class="flex gap-0.5">
|
||||||
<Tooltip :text="__('Reply')">
|
<Tooltip :text="__('Reply')">
|
||||||
@ -834,6 +840,7 @@ import {
|
|||||||
Dropdown,
|
Dropdown,
|
||||||
TextEditor,
|
TextEditor,
|
||||||
Avatar,
|
Avatar,
|
||||||
|
Badge,
|
||||||
createResource,
|
createResource,
|
||||||
call,
|
call,
|
||||||
} from 'frappe-ui'
|
} from 'frappe-ui'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user