Email alert renamed to Notification (#14618)
This commit is contained in:
parent
3946b77555
commit
fc2292f08c
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#### Customer Feedback
|
#### Customer Feedback
|
||||||
- This feature will allow you to ask a customer to rate your service.
|
- This feature will allow you to ask a customer to rate your service.
|
||||||
- You can configure Feedback Trigger, just like we setup an Email Alert. It will send an email to customer asking for feedback. Customer's Feedback will be updated in the relevant.
|
- You can configure Feedback Trigger, just like we setup an Notification. It will send an email to customer asking for feedback. Customer's Feedback will be updated in the relevant.
|
||||||
- You can also check Feedback Rating report for daily average rating and trend.
|
- You can also check Feedback Rating report for daily average rating and trend.
|
||||||
|
|
||||||
#### School Assessment Module
|
#### School Assessment Module
|
||||||
|
@ -69,12 +69,12 @@ frappe.help.help_links['List/Email Account'] = [
|
|||||||
{ label: 'Email Account', url: 'https://frappe.github.io/erpnext/user/manual/en/setting-up/email/email-account' },
|
{ label: 'Email Account', url: 'https://frappe.github.io/erpnext/user/manual/en/setting-up/email/email-account' },
|
||||||
]
|
]
|
||||||
|
|
||||||
frappe.help.help_links['List/Email Alert'] = [
|
frappe.help.help_links['List/Notification'] = [
|
||||||
{ label: 'Email Alert', url: 'https://frappe.github.io/erpnext/user/manual/en/setting-up/email/email-alerts' },
|
{ label: 'Notification', url: 'https://frappe.github.io/erpnext/user/manual/en/setting-up/email/notifications' },
|
||||||
]
|
]
|
||||||
|
|
||||||
frappe.help.help_links['Form/Email Alert'] = [
|
frappe.help.help_links['Form/Notification'] = [
|
||||||
{ label: 'Email Alert', url: 'https://frappe.github.io/erpnext/user/manual/en/setting-up/email/email-alerts' },
|
{ label: 'Notification', url: 'https://frappe.github.io/erpnext/user/manual/en/setting-up/email/notifications' },
|
||||||
]
|
]
|
||||||
|
|
||||||
frappe.help.help_links['List/Email Digest'] = [
|
frappe.help.help_links['List/Email Digest'] = [
|
||||||
|
@ -29,7 +29,7 @@ def make_sample_data(domains, make_dependent = False):
|
|||||||
make_material_request(frappe.get_all("Item"))
|
make_material_request(frappe.get_all("Item"))
|
||||||
|
|
||||||
make_projects(domains)
|
make_projects(domains)
|
||||||
import_email_alert()
|
import_notification()
|
||||||
|
|
||||||
def make_opportunity(items, customer):
|
def make_opportunity(items, customer):
|
||||||
b = frappe.get_doc({
|
b = frappe.get_doc({
|
||||||
@ -159,11 +159,11 @@ def make_projects(domains):
|
|||||||
|
|
||||||
project.insert(ignore_permissions=True)
|
project.insert(ignore_permissions=True)
|
||||||
|
|
||||||
def import_email_alert():
|
def import_notification():
|
||||||
'''Import email alert for task start'''
|
'''Import notification for task start'''
|
||||||
with open (os.path.join(os.path.dirname(__file__), "tasks/task_alert.json")) as f:
|
with open (os.path.join(os.path.dirname(__file__), "tasks/task_alert.json")) as f:
|
||||||
email_alert = frappe.get_doc(json.loads(f.read())[0])
|
notification = frappe.get_doc(json.loads(f.read())[0])
|
||||||
email_alert.insert()
|
notification.insert()
|
||||||
|
|
||||||
# trigger the first message!
|
# trigger the first message!
|
||||||
from frappe.email.doctype.notification.notification import trigger_daily_alerts
|
from frappe.email.doctype.notification.notification import trigger_daily_alerts
|
||||||
@ -174,4 +174,4 @@ def test_sample():
|
|||||||
frappe.db.sql('delete from tabProject')
|
frappe.db.sql('delete from tabProject')
|
||||||
frappe.db.sql('delete from tabTask')
|
frappe.db.sql('delete from tabTask')
|
||||||
make_projects('Education')
|
make_projects('Education')
|
||||||
import_email_alert()
|
import_notification()
|
@ -5,12 +5,12 @@
|
|||||||
"date_changed": "exp_end_date",
|
"date_changed": "exp_end_date",
|
||||||
"days_in_advance": 0,
|
"days_in_advance": 0,
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Email Alert",
|
"doctype": "Notification",
|
||||||
"document_type": "Task",
|
"document_type": "Task",
|
||||||
"enabled": 1,
|
"enabled": 1,
|
||||||
"event": "Days After",
|
"event": "Days After",
|
||||||
"is_standard": 0,
|
"is_standard": 0,
|
||||||
"message": "<p>Task due today:</p>\n\n<div>\n{{ doc.description }}\n</div>\n\n<hr>\n<p style=\"font-size: 85%\">\nThis is a notification for a task that is due today, and a sample <b>Email Alert</b>. In ERPNext you can setup email alerts on anything, Invoices, Orders, Leads, Opportunities, so you never miss a thing.\n<br>To edit this, and setup other alerts, just type <b>Email Alert</b> in the search bar.</p>",
|
"message": "<p>Task due today:</p>\n\n<div>\n{{ doc.description }}\n</div>\n\n<hr>\n<p style=\"font-size: 85%\">\nThis is a notification for a task that is due today, and a sample <b>Notification</b>. In ERPNext you can setup notifications on anything, Invoices, Orders, Leads, Opportunities, so you never miss a thing.\n<br>To edit this, and setup other alerts, just type <b>Notification</b> in the search bar.</p>",
|
||||||
"method": null,
|
"method": null,
|
||||||
"modified": "2017-03-09 07:34:58.168370",
|
"modified": "2017-03-09 07:34:58.168370",
|
||||||
"module": null,
|
"module": null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user