Merge pull request #20835 from Thunderbottom/welcome-email-fix

fix: use ERPNext in welcome email when default company is not set
This commit is contained in:
Deepesh Garg 2020-03-16 15:54:53 +05:30 committed by GitHub
commit d190cc0198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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