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:
parent
6dc335d898
commit
612e58dca8
@ -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…
x
Reference in New Issue
Block a user