From a0bbca4f2ff2869c784096f2dfdfb597ce401617 Mon Sep 17 00:00:00 2001 From: Mayur Patel Date: Wed, 3 Jul 2013 16:17:01 +0000 Subject: [PATCH] Password change notification email had hard coded word ERPNext in it. I have changed it to use startup.product_name instead. --- core/doctype/profile/profile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/doctype/profile/profile.py b/core/doctype/profile/profile.py index f0ee9ffe9e..fc6ce98b93 100644 --- a/core/doctype/profile/profile.py +++ b/core/doctype/profile/profile.py @@ -148,11 +148,12 @@ To login to %(product)s, please go to: Thank you,
%(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.") - \ No newline at end of file +