コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3104 ビュー

Hi there

actually using the default styles in the module "e-Mail-Marketing".
Where can I create my own one? with my CI-CD colors?

thx in advance, Patrik

アバター
破棄
著作者 最善の回答

and in the odoo UI directly? without code

アバター
破棄
最善の回答

Hi,

For this you can create a new custom module and add a new email design.

Inherit the mass_mailing.email_designer_snippets and using xpath add new template like this,

<template id="test_template" inherit_id="mass_mailing.email_designer_snippets">
<xpath expr="//div[@data-name='default']" position="after">
<div data-name="test_mass_mail_1"
data-img="/module_name/static/src/img/test"
data-images-info='{"logo": {"format": "png"}}'>
<t t-call="module_name.theme_test"/>
</div>
</xpath>
</template>


Now you have to define the corresponding template,

<template id="theme_test">
<div class="o_layout o_test_mass_mail_theme">
<table class="o_mail_wrapper">
</table>
</div>
</template>


Thanks

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 24
1557
2
2月 24
8914
2
1月 20
3105
0
3月 15
3881
1
11月 20
6899