Odoo Help


How can I override email template without changing original template file. [Closed]

on 6/12/13, 12:02 PM 7,498 views

The Question has been closed

Sudhir Arya (ERP Harbor Consulting Services)
on 06/13/2013 16:40:04

How can I override email template?

In my case, I need to change invitation email template. I'm found set_password_email view in auth_signup module, but I want to keep originaly file. Template is not contain <field name="arch" type="xml"> section:

        <!-- Email template for new users -->
        <record id="set_password_email" model="email.template">
            <field name="name">OpenERP Enterprise Connection</field>
            <field name="model_id" ref="base.model_res_users"/>
            <field name="email_from"><![CDATA[${object.company_id.name} <${object.company_id.email}>]]></field>
            <field name="email_to">${object.email}</field>
            <field name="subject"><![CDATA[${object.company_id.name} invitation to connect on OpenERP]]></field>
            <field name="body_html">
                        You have been invited to connect to "${object.company_id.name}" in order to get access to your documents in OpenERP.
                        To accept the invitation, click on the following link:
                        <li><a href="${object.signup_url}">Accept invitation to "${object.company_id.name}"</a></li>
${object.company_id.name or ''}
${object.company_id.email or ''}
${object.company_id.phone or ''}

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 6/13/13, 10:19 AM

You just need to overwrite the record id of xml file.

Like this:

    <record id="auth_signup.reset_password_email" model="email.template">
        <field name="name">Reset Password Custom Name</field>

Here I have changed value of name field only. You can also change any value as per your wish.

I'm wondering why it does not work. It should.

Aron Lorinc
on 11/20/15, 6:40 AM

it was because some built-in templates are wrapped in a noupdate=1 block in the XML file

Aron Lorinc
on 11/20/15, 9:17 AM

i need to change body content but not working for me.

on 11/9/16, 5:28 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/12/13, 12:02 PM
Seen: 7498 times
Last updated: 6/7/17, 4:32 AM