diff options
| author | Mitali Patel <mpa@odoo.com> | 2018-07-04 12:13:23 +0530 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-07-24 15:33:22 +0200 |
| commit | 022a1660b44db24f7e4f06257802663e0dd8fcb3 (patch) | |
| tree | 315e715e737dbcb85b417678a002da2980e3f22c /addons/mail/data/mail_data.xml | |
| parent | 744261a2effb34515d275219c32d47cbb69a7390 (diff) | |
[IMP] mail: clean record name displayed in notification email and update font size
Purpose is to avoid having '/' in record name. This is generally considered
as being an URL and leads to a specific display in most email readers. In
this commit we therefore remove '/' by '-'.
A use case is the name of payment receipts.
Font sizes in light notification template are also standardized to 13 and
11 px to better match the chatter layout. Emails are still bioutifoul.
This commit is linked to task ID 1843376 (and 1868112) and to PR #25349
(and #25889).
Diffstat (limited to 'addons/mail/data/mail_data.xml')
| -rw-r--r-- | addons/mail/data/mail_data.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 7b5196d271d..4c3848f1199 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -168,7 +168,7 @@ <tr><td valign="middle"> <span style="font-size: 10px;">Your <t t-esc="'%s' % model_description or 'document'"/></span><br/> <span style="font-size: 20px; font-weight: bold;"> - <t t-esc="message.record_name"/> + <t t-esc="message.record_name and message.record_name.replace('/','-') or ''"/> </span> </td><td valign="middle" align="right"> <img t-att-src="'/logo.png?company=%s' % company.id" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="'%s' % company.name"/> @@ -183,7 +183,7 @@ <tr> <td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> - <tr><td valign="top" style="font-size: 14px;"> + <tr><td valign="top" style="font-size: 13px;"> <t t-raw="message.body"/> </td></tr> <tr><td style="text-align:center;"> @@ -195,7 +195,7 @@ <!-- FOOTER --> <tr> <td align="center" style="min-width: 590px;"> - <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 12px; padding: 0px 8px 0px 8px; border-collapse:separate;"> + <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;"> <tr><td valign="middle" align="left"> <t t-esc="company.name"/> </td></tr> @@ -219,7 +219,7 @@ <!-- POWERED BY --> <tr><td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;"> - <tr><td style="text-align: center; font-size: 14px;"> + <tr><td style="text-align: center; font-size: 13px;"> Powered by <a target="_blank" href="https://www.odoo.com" style="color: #875A7B;">Odoo</a> </td></tr> </table> |
