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:
commit
d190cc0198
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user