Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3081 Vistas

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

Avatar
Descartar
Autor Mejor respuesta

and in the odoo UI directly? without code

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 24
1529
2
feb 24
8883
2
ene 20
3087
0
mar 15
3854
1
nov 20
6872