fix: use ERPNext in welcome email when default company is not set (#20837)

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay Pai
2020-03-16 13:50:09 +05:30
committed by GitHub
parent 0393cb5c43
commit f8dc7b32d5

View File

@@ -141,6 +141,6 @@ def insert_record(records):
raise
def welcome_email():
site_name = get_default_company()
title = _("Welcome to {0}".format(site_name))
return title
site_name = get_default_company() or "ERPNext"
title = _("Welcome to {0}").format(site_name)
return title