Skip to Content
Menu
This question has been flagged
1 Reply
4459 Views

Hello Friends,

I need to create simple email template.

Thanks in advance

Avatar
Discard
Author Best Answer

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
Discard
Related Posts Replies Views Activity
1
Feb 24
924
1
Jul 23
1650
3
Dec 23
17571
1
Feb 22
4407
0
Aug 21
1528