[FIX] Keep original styling in email footer

pull/22/merge
Stefan Rijnhart 2017-11-20 08:02:30 +01:00 committed by Jairo Llopis
parent bf17597faa
commit 390ff72ef6
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@
{ {
"name": "Mail Debrand", "name": "Mail Debrand",
"summary": "Remove Odoo branding from email footers", "summary": "Remove Odoo branding from email footers",
"version": "8.0.1.0.1", "version": "8.0.1.0.2",
"category": "Social Network", "category": "Social Network",
"website": "http://www.antiun.com", "website": "http://www.antiun.com",
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)", "author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)",

View File

@ -44,8 +44,9 @@ class MailNotification(models.Model):
if website: if website:
if not website.startswith(('http:', 'https:')): if not website.startswith(('http:', 'https:')):
website = "http://" + website website = "http://" + website
company = ("<a href='%s'>%s</a>" % company = ("<a style='color:inherit' href='%s'>%s</a>" %
(website, user.company_id.name)) (website, user.company_id.name))
else: else:
company = user.company_id.name company = user.company_id.name
return _('Sent by %s') % company sent_by = _('Sent by %s') % company
return '<br /><small>%s</small>' % sent_by