mirror of https://github.com/OCA/social.git
[FIX] Keep original styling in email footer
parent
bf17597faa
commit
390ff72ef6
|
@ -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)",
|
||||
|
|
|
@ -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…
Reference in New Issue