Merge branch 'navupdate' of github.com:webnotes/erpnext into navupdate
This commit is contained in:
commit
dc7e6889dd
@ -48,8 +48,8 @@ class DocType:
|
|||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
|
|
||||||
self.set_cp_defaults(args['company'], args['industry'], args['time_zone'], args['country'], args['account_name'])
|
self.set_cp_defaults(args['company'], args['industry'], args['time_zone'], args['country'], args['account_name'])
|
||||||
self.create_profile(args['user'], args['first_name'], args['last_name'], args.get('pwd'))
|
self.create_profile(args['user'], args['first_name'], args['last_name'], args.get('pwd'))
|
||||||
|
|
||||||
# Domain related updates
|
# Domain related updates
|
||||||
try:
|
try:
|
||||||
from server_tools.gateway_utils import add_domain_map
|
from server_tools.gateway_utils import add_domain_map
|
||||||
@ -58,7 +58,9 @@ class DocType:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
# add record in domain_list of Website Settings
|
# add record in domain_list of Website Settings
|
||||||
webnotes.conn.set_value('Website Settings', 'Website Settings', 'subdomain', args['url_name'] + ".erpnext.com")
|
account_url = args['url_name'] + '.erpnext.com'
|
||||||
|
webnotes.conn.set_value('Website Settings', 'Website Settings',
|
||||||
|
'subdomain', account_url)
|
||||||
|
|
||||||
|
|
||||||
# Account Setup
|
# Account Setup
|
||||||
@ -125,7 +127,8 @@ class DocType:
|
|||||||
"""update activty feed and create todo for creation of item, customer, vendor"""
|
"""update activty feed and create todo for creation of item, customer, vendor"""
|
||||||
import home
|
import home
|
||||||
home.make_feed('Comment', 'ToDo Item', '', webnotes.session['user'],
|
home.make_feed('Comment', 'ToDo Item', '', webnotes.session['user'],
|
||||||
'<i>"' + 'Setup Complete. Please check your To Do List' + '"</i>', '#6B24B3')
|
'<i>"' + 'Setup Complete. Please check your <a href="#!todo">\
|
||||||
|
To Do List</a>' + '"</i>', '#6B24B3')
|
||||||
|
|
||||||
d = Document('ToDo Item')
|
d = Document('ToDo Item')
|
||||||
d.description = 'Create your first Customer'
|
d.description = 'Create your first Customer'
|
||||||
|
@ -154,7 +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_default('account_url')
|
'account_url': webnotes.conn.get_value('Website Settings',
|
||||||
|
'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)
|
||||||
@ -189,4 +190,4 @@ password: %(password)s
|
|||||||
To login to your new ERPNext account, please go to:
|
To login to your new ERPNext account, please go to:
|
||||||
|
|
||||||
%(account_url)s
|
%(account_url)s
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user