diff --git a/erpnext/home/page/my_company/my_company.py b/erpnext/home/page/my_company/my_company.py index 6939062140..34eeacd7b0 100644 --- a/erpnext/home/page/my_company/my_company.py +++ b/erpnext/home/page/my_company/my_company.py @@ -108,6 +108,7 @@ def send_welcome_mail(email, args): 'password': args.get('password'), 'account_url': webnotes.conn.get_default('account_url') }) + if not args.get('last_name'): args['last_name'] = '' sendmail_md(pr.email, subject="Welcome to ERPNext", msg=welcome_txt % args) #