Password change notification email had hard coded word ERPNext in it. I have changed it to use startup.product_name instead.

This commit is contained in:
Mayur Patel 2013-07-03 16:17:01 +00:00
parent 0d604eeb66
commit a0bbca4f2f

View file

@ -148,11 +148,12 @@ To login to %(product)s, please go to:
Thank you,<br>
%(user_fullname)s
"""
self.send_login_mail("Your ERPNext password has been reset", txt, password)
import startup
self.send_login_mail("Your " +startup.product_name + " password has been reset", txt, password)
def send_welcome_mail(self, password):
"""send welcome mail to user with password and login url"""
import startup
txt = """
## %(company)s
@ -329,4 +330,4 @@ def sign_up(email, full_name):
profile.ignore_permissions = True
profile.insert()
return _("Registration Details Emailed.")