Skip to content

Commit

Permalink
Merge pull request #185 from efeone/email_template_dr
Browse files Browse the repository at this point in the history
feat: Created email template for design request notification
  • Loading branch information
muhammadmp authored Nov 13, 2023
2 parents a2af8ae + f9a759c commit 23612f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions aumms/fixtures/email_template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"docstatus": 0,
"doctype": "Email Template",
"modified": "2023-11-04 12:57:54.876364",
"name": "Design Request Assignment",
"response": "<div class=\"ql-editor read-mode\"><p><br></p></div>",
"response_html": "<!DOCTYPE html>\n<p>\nDear {{ frappe.get_fullname(assigned_person) }},\nI hope this message finds you well. I'm reaching out to inform you that a new design request has been assigned to you for analysis. We greatly value your expertise and trust in your ability to contribute to the success of this project.\n<br>\nPlease find the details of the assignment below:\n</p>\n<ul>\n <li>Design Request ID : {{ name }}</li>\n <li>Deadline: {{ delivery_date }}</li>\n</ul>\n<p>\nWe kindly request you to review the assignment and provide your analysis and insights as soon as possible. \n<br>\nThank you for your prompt attention to this matter.\n<br><br>\nBest regards,\n<br>\n{{ frappe.get_fullname(frappe.session.user) }}\n\n</p>\n",
"subject": "New Design Request Assignment",
"use_html": 1
}
]
1 change: 1 addition & 0 deletions aumms/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@

fixtures = [{"dt": "Role","filters": [["name", "in", ["Design Analyst", "Supervisor","Smith","Head of Smith"]]]},
{"dt":"Designation","filters":[["name","in",["Smith"]]]},
{"dt":"Email Template","filters":[["name","in",["Design Request Assignment"]]]},
]
# before_uninstall = "aumms.uninstall.before_uninstall"
# after_uninstall = "aumms.uninstall.after_uninstall"
Expand Down

0 comments on commit 23612f9

Please sign in to comment.