fix: use ERPNext in welcome email when default company is not set

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-03-05 10:08:43 +05:30
parent 6dc335d898
commit 612e58dca8
No known key found for this signature in database
GPG Key ID: 75507BE256F40CED

View File

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