Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1721 Переглядів

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
2925
0
жовт. 15
3306
2
трав. 25
1623
1
квіт. 25
888
1
груд. 22
2023