Cleaned up welcome email code (#15175)
This commit is contained in:
parent
2b72d09948
commit
771fbb8f01
@ -27,6 +27,8 @@ doctype_js = {
|
|||||||
"Communication": "public/js/communication.js",
|
"Communication": "public/js/communication.js",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
welcome_email = "erpnext.setup.utils.welcome_email"
|
||||||
|
|
||||||
# setup wizard
|
# setup wizard
|
||||||
setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
|
setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
|
||||||
setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages"
|
setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages"
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import frappe
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import flt, add_days
|
from frappe.utils import flt, add_days
|
||||||
from frappe.utils import get_datetime_str, nowdate
|
from frappe.utils import get_datetime_str, nowdate
|
||||||
|
from erpnext import get_default_company
|
||||||
|
|
||||||
def get_root_of(doctype):
|
def get_root_of(doctype):
|
||||||
"""Get root element of a DocType with a tree structure"""
|
"""Get root element of a DocType with a tree structure"""
|
||||||
@ -155,3 +156,8 @@ def insert_record(records):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
def welcome_email():
|
||||||
|
site_name = get_default_company()
|
||||||
|
title = _("Welcome to {0}".format(site_name))
|
||||||
|
return title
|
||||||
Loading…
x
Reference in New Issue
Block a user