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.
48 lines
2.3 KiB
XML
48 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="assets_mail_themes">
|
|
<link rel="stylesheet" type="text/scss" href="/mass_mailing/static/src/scss/themes/theme_basic.scss"/>
|
|
<link rel="stylesheet" type="text/scss" href="/mass_mailing/static/src/scss/themes/theme_default.scss"/>
|
|
<t t-call="mass_mailing.mass_mailing_mail_style"/>
|
|
</template>
|
|
|
|
<template id="FieldTextHtmlInline" name="Editor layout">
|
|
<t t-call="web_editor.layout">
|
|
<t t-set="head_mm_field_text_html_inline">
|
|
<t t-if="enable_editor">
|
|
<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 '')"/>
|
|
|
|
<div t-if="not edit_translations" id="editable_area" class="o_editable o_mail_area" t-att-data-oe-model="model" t-att-data-oe-field="field" t-att-data-oe-id="res_id" data-oe-type="html"><t t-raw="content"/></div>
|
|
<div t-if="edit_translations" id="editable_area" class="o_mail_area"><t t-raw="content"/></div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="FieldTextHtmlPopupContent" name="Editor layout">
|
|
<t t-call="web_editor.layout">
|
|
<t t-set="head">
|
|
<link rel="stylesheet" href="/mass_mailing/static/src/css/mass_mailing_popup.css" type="text/css"/>
|
|
</t>
|
|
<div role="dialog" class="modal-dialog modal-md d-block" id="o_newsletter_popup">
|
|
<div class="modal-content o_popup_modal_content">
|
|
<div class="o_popup_modal_body text-center">
|
|
<div class="o_popup_content_dev">
|
|
<div id="editable_area" class="o_editable o_mail_area" t-att-data-oe-model="model" t-att-data-oe-field="field" t-att-data-oe-id="res_id" data-oe-type="html">
|
|
<!-- Can be removed once default values are ok for the editor -->
|
|
<t t-raw="content"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|