Odoo Help


4 Answers
Javier Fuentes Spain
4/8/13, 8:18 AM

Thank you very much for your response GEM. I am not sure I've understood well the solution your have proposed. Following your comment, this is how I have configured the addressing information of the template:

From: (blank)

To (Emails): ${object.email}

To (Partners): ${object.id}

Reply-To: marketing@mydomain.com

I have sent a sample email using this template as one of the users of the system and this is what I have obtained:

  • Sender address is still the e-mail of the configured outgoing mail address (not the address of the user sending the email)
  • If a try to reply-to the received e-mail, the destination address is the address of the user.

What am I doing wrong?

Thank you for your time. Regards,



Cyril Gaspard (GEM) France

--Cyril Gaspard (GEM)--
| 6 6 10
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Rank #1 on first OpenERP forum

OpenERP award "Top Contributor" 2011, for my actions on forum

Odoo forum moderator

Cyril Gaspard (GEM) France
4/6/13, 9:09 AM


user should have an email given in his account, no need to enter a value in field FROM, see the code :

    'email_from': fields.char('From',
        help="Sender address (placeholders may be used here). If not set, the default "
                "value will be the author's email alias if configured, or email address."),

to have a different address for the reply, give the value address you want in field reply to.

    'reply_to': fields.char('Reply-To', help="Preferred response address (placeholders may be used here)"),



Any one show is interested and fall o this question, here is how you do it in xml:

<record id="yourdirectory.yourprefered_id" model="mail.template">

<field name="email_from">info@yourcompany.com</field>

  <field name="reply_to">info@yourcompany.com</field>

  <field name="email_to">${object.model_field_representing_email}</field>

  <field name="subject">bla bla bla</field>



Dale South Africa
7/28/13, 4:30 PM

Thanks for this thread. Tell me please, I want to create a template that is available from the drop down when sending a new mail by clicking the envelope icon next to the user name in the top right corner. What is the correct model to add the template to so that it appears in this drop down?


Ask a Question
Keep Informed
1 follower(s)
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