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

I need to change the template of user Invitation / Registration / Password Reset 

in my custom module i added /data/mail_template_data.xml

         

<record id="auth_signup.reset_password_email" model="mail.template">

            <field name="model_id" ref="base.model_res_users"/>

            <field name="body_html" type="html">

            </field>

        </record>
 

​ 

​   


but nothing changed


 i also tried add 

   

<function name="write" model="ir.model.data">

    <function name="search" model="ir.model.data">

        <value eval="[('name', '=', 'reset_password_email'), ('module', '=', 'auth_signup')]"/>

    </function>

    <value eval="{'noupdate': False}"/>

</function>




But same result

Any Help?

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

mail_notification_password_reset not exist i need to edit auth_signup.reset_password_email

アバター
破棄
最善の回答

Hi,

Can you please try below path?

Path: addons -> mail -> data -> mail_templates.xml.

you can inherit template "mail_notification_password_rest" and add your changes there.

 Thank you

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 15
3390
0
10月 15
3773
2
8月 25
2419
1
4月 25
1397
1
12月 22
2556