Fixes frappe/erpnext#1849
diff --git a/erpnext/hooks.py b/erpnext/hooks.py
index bddda2d..1dde638 100644
--- a/erpnext/hooks.py
+++ b/erpnext/hooks.py
@@ -19,8 +19,6 @@
dump_report_map = "erpnext.startup.report_data_map.data_map"
update_website_context = "erpnext.startup.webutils.update_website_context"
-mail_footer = "erpnext.startup.mail_footer"
-
on_session_creation = "erpnext.startup.event_handlers.on_session_creation"
before_tests = "erpnext.setup.utils.before_tests"
@@ -76,3 +74,4 @@
"erpnext.setup.doctype.backup_manager.backup_manager.take_backups_weekly"
]
}
+
diff --git a/erpnext/setup/install.py b/erpnext/setup/install.py
index ba1dfb7..946ee5f 100644
--- a/erpnext/setup/install.py
+++ b/erpnext/setup/install.py
@@ -7,6 +7,9 @@
from frappe import _
+default_system_signature = """<div style="padding: 7px; text-align: right; color: #888"><small>Sent via
+ <a style="color: #888" href="http://erpnext.org">ERPNext</a></div>"""
+
def after_install():
frappe.get_doc({'doctype': "Role", "role_name": "Analytics"}).insert()
set_single_defaults()
@@ -79,3 +82,6 @@
pass
frappe.db.set_default("date_format", "dd-mm-yyyy")
+
+ frappe.db.set_value("Outgoing Email Settings", "Outgoing Email Settings", "system_signature",
+ default_system_signature)
diff --git a/erpnext/startup/__init__.py b/erpnext/startup/__init__.py
index e20ece3..576ab05 100644
--- a/erpnext/startup/__init__.py
+++ b/erpnext/startup/__init__.py
@@ -27,10 +27,6 @@
"Territory": "territory"
}
-# add startup propertes
-mail_footer = """<div style="padding: 7px; text-align: right; color: #888"><small>Sent via
- <a style="color: #888" href="http://erpnext.org">ERPNext</a></div>"""
-
def get_monthly_bulk_mail_limit():
import frappe
# if global settings, then 500 or unlimited