Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2581 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 15
3469
0
ต.ค. 15
3820
2
ส.ค. 25
2534
1
เม.ย. 25
1506
odoo15 email format suddenly wrong แก้ไขแล้ว
1
ธ.ค. 22
2629