fix in account setup and user addition
This commit is contained in:
parent
fd5a213890
commit
9a63996699
@ -154,8 +154,8 @@ def send_welcome_mail(email, args):
|
|||||||
args.update({
|
args.update({
|
||||||
'company': webnotes.conn.get_default('company'),
|
'company': webnotes.conn.get_default('company'),
|
||||||
'password': args.get('password'),
|
'password': args.get('password'),
|
||||||
'account_url': webnotes.conn.get_value('Website Settings', 'Website
|
'account_url': webnotes.conn.get_value('Website Settings',
|
||||||
Settings', 'subdomain') or ""
|
'Website Settings', 'subdomain') or ""
|
||||||
})
|
})
|
||||||
if not args.get('last_name'): args['last_name'] = ''
|
if not args.get('last_name'): args['last_name'] = ''
|
||||||
sendmail_md(pr.email, subject="Welcome to ERPNext", msg=welcome_txt % args, from_defs=1)
|
sendmail_md(pr.email, subject="Welcome to ERPNext", msg=welcome_txt % args, from_defs=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user