diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 6777a71694b..6ff0a13c8d3 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -193,6 +193,8 @@ scheduler_events = { ] } +email_brand_image = "assets/erpnext/images/erpnext-logo.jpg" + default_mail_footer = """
- {{ reply.content }} -
-{{ did_not_reply_title }}: {{ did_not_reply }}
-{% endif %} - -''' def get_employee_emails(company, only_working=True): '''Returns list of Employee user ids for the given company who are working today diff --git a/erpnext/hr/doctype/daily_work_summary/test_daily_work_summary.py b/erpnext/hr/doctype/daily_work_summary/test_daily_work_summary.py index ad9d43f5519..63e6fdf9f29 100644 --- a/erpnext/hr/doctype/daily_work_summary/test_daily_work_summary.py +++ b/erpnext/hr/doctype/daily_work_summary/test_daily_work_summary.py @@ -46,9 +46,9 @@ class TestDailyWorkSummary(unittest.TestCase): daily_work_summary = frappe.get_doc('Daily Work Summary', frappe.get_all('Daily Work Summary')[0].name) - summary = daily_work_summary.get_summary_message() + args = daily_work_summary.get_message_details() - self.assertTrue('I built Daily Work Summary!' in summary) + self.assertTrue('I built Daily Work Summary!' in args.get('replies')[0].content) def setup_and_prepare_test(self, hour=None): frappe.db.sql('delete from `tabDaily Work Summary`') diff --git a/erpnext/templates/emails/daily_work_summary.html b/erpnext/templates/emails/daily_work_summary.html new file mode 100644 index 00000000000..726de3b8906 --- /dev/null +++ b/erpnext/templates/emails/daily_work_summary.html @@ -0,0 +1,59 @@ +| + |
+ {% if reply.image %}
+
+ {{ reply.sender_name[0] }}
+
+ {% endif %}
+ |
+ + |
+
+ {{ reply.sender_name }}
+
+ |
+ + |
| + |
+
+ {{ reply.content }}
+
+ |
+ + |