Browse Source

[FIX] Keep original styling in email footer

pull/22/merge
Stefan Rijnhart 7 years ago
committed by Jairo Llopis
parent
commit
390ff72ef6
  1. 2
      mail_debrand/__openerp__.py
  2. 5
      mail_debrand/models/mail.py

2
mail_debrand/__openerp__.py

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

5
mail_debrand/models/mail.py

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