From f9a759cbe1a33cfa9a3d0d61a06bac611b1dbaf4 Mon Sep 17 00:00:00 2001 From: nidh-eesh Date: Fri, 10 Nov 2023 10:26:56 +0530 Subject: [PATCH] feat: Created email template for design request notification --- aumms/fixtures/email_template.json | 12 ++++++++++++ aumms/hooks.py | 1 + 2 files changed, 13 insertions(+) create mode 100644 aumms/fixtures/email_template.json diff --git a/aumms/fixtures/email_template.json b/aumms/fixtures/email_template.json new file mode 100644 index 00000000..49fd6095 --- /dev/null +++ b/aumms/fixtures/email_template.json @@ -0,0 +1,12 @@ +[ + { + "docstatus": 0, + "doctype": "Email Template", + "modified": "2023-11-04 12:57:54.876364", + "name": "Design Request Assignment", + "response": "


", + "response_html": "\n

\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
\nPlease find the details of the assignment below:\n

\n\n

\nWe kindly request you to review the assignment and provide your analysis and insights as soon as possible. \n
\nThank you for your prompt attention to this matter.\n

\nBest regards,\n
\n{{ frappe.get_fullname(frappe.session.user) }}\n\n

\n", + "subject": "New Design Request Assignment", + "use_html": 1 + } +] \ No newline at end of file diff --git a/aumms/hooks.py b/aumms/hooks.py index 7a65d0bc..d9265d07 100644 --- a/aumms/hooks.py +++ b/aumms/hooks.py @@ -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"