diff --git a/addons/mail/mail_followers.py b/addons/mail/mail_followers.py index 450b81dabbf..7b156883895 100644 --- a/addons/mail/mail_followers.py +++ b/addons/mail/mail_followers.py @@ -118,8 +118,8 @@ class mail_notification(osv.Model): Administrator

- Send by Your Company using OpenERP. OR - Send by Administrator using OpenERP. + Sent by Your Company using OpenERP. OR + Sent by Administrator using OpenERP.
""" footer = "" @@ -135,14 +135,17 @@ class mail_notification(osv.Model): footer = tools.append_content_to_html(footer, signature, plaintext=False, container_tag='p') # add company signature - if user.company_id: - company = user.company_id.website and "%s" % (user.company_id.website, user.company_id.name) or user.company_id.name + if user.company_id.website: + website_url = ('http://%s' % user.company_id.website) if not user.company_id.website.lower().startswith(('http:','https:')) \ + else user.company_id.website + company = "%s" % (website_url, user.company_id.name) else: - company = user.name - signature_company = _('Send by %(company)s using %(openerp)s.') % { + company = user.company_id.name + sent_by = _('Sent by %(company)s using %(openerp)s.') + signature_company = '%s' % (sent_by % { 'company': company, 'openerp': "OpenERP" - } + }) footer = tools.append_content_to_html(footer, signature_company, plaintext=False, container_tag='div') return footer