Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5598 Zobrazení

Hello Friends,

I need to create simple email template.

Thanks in advance

Avatar
Zrušit
Autor Nejlepší odpověď

I would like to share here how to create simple email template.

Example

<record id="set_any_unique_id" model="email.template">

<field name="name">Any String</field>

<field name="email_from">${sender_email_id}</field>

<field name="subject">${'Any Subject'}</field>

<field name="email_recipients">${receiver_email_id}</field>

<field name="model_id" ref="module_name.model_model_name"/>

<field name="auto_delete" eval="True"/>

<field name="body_html">

<![CDATA[

<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">

<p>Hello ${object.name},</p>

]]>

</field>

</record>

For more information please refer below path.

/addons/sale/edi/sale_order_action_data.xml

Best Regards,

Ankit H Gandhi.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
pro 24
5325
1
úno 24
2488
1
čvc 23
3388
3
pro 23
19116
1
úno 22
6137