summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/views/editor_field_html.xml
diff options
context:
space:
mode:
authorAnshuman Sharma <ans@odoo.com>2018-07-12 11:33:28 +0530
committerChristophe Matthieu <chm@odoo.com>2018-08-13 11:34:34 +0200
commit590679f868234c07e7f263171f3fa2c6fa9eea8b (patch)
tree9f6e58818a6852c57c5305abe26bea6f4993f2af /addons/mass_mailing/views/editor_field_html.xml
parent7f0cc6ac527cc3251ad1c1086e3302d589de0c20 (diff)
[IMP] mass_mailing: removed font-family from plain text
Purpose behind this commit is to remove font-family from all elements in plaintext theme. So mail receiver will see this mail in default system font. This is inspired by new Gmail and suggested by FP As we want to show system's default font in the mail sent with the basic theme. And so we remove font-family from basic theme while saving. But by doing so in readonly mode is not getting proper font in odoo as we don't having any assets in readonly mail editor. So we added stylesheet just for display purpose.
Diffstat (limited to 'addons/mass_mailing/views/editor_field_html.xml')
-rw-r--r--addons/mass_mailing/views/editor_field_html.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mass_mailing/views/editor_field_html.xml b/addons/mass_mailing/views/editor_field_html.xml
index 8a1a8845aa8..513be80933a 100644
--- a/addons/mass_mailing/views/editor_field_html.xml
+++ b/addons/mass_mailing/views/editor_field_html.xml
@@ -13,6 +13,9 @@
<t t-call-assets="mass_mailing.assets_mail_themes"/>
<script type="text/javascript" src="/mass_mailing/static/src/js/mass_mailing_editor.js"></script>
</t>
+ <t t-else="">
+ <link rel="stylesheet" href="/mass_mailing/static/src/css/basic_theme_readonly.css" type="text/css"/>
+ </t>
<base target="_parent"/>
</t>
<t t-set="head" t-value="head_mm_field_text_html_inline + (head or '')"/>