跳至內容
選單
此問題已被標幟
1 回覆
5616 瀏覽次數

Hello Friends,

I need to create simple email template.

Thanks in advance

頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
12月 24
5333
1
2月 24
2497
1
7月 23
3402
3
12月 23
19127
1
2月 22
6148