[demo] make it faster, do not send user email

This commit is contained in:
Rushabh Mehta
2017-06-16 16:55:32 +05:30
parent 9a3462031d
commit 73167eae60
2 changed files with 7 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ def setup_user():
for u in json.loads(open(frappe.get_app_path('erpnext', 'demo', 'data', 'user.json')).read()):
user = frappe.new_doc("User")
user.update(u)
user.flags.no_welcome_mail
user.flags.no_welcome_mail = True
user.new_password = 'demo'
user.insert()