Odoo Help

Welcome!

This community 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.

1

How to set default email template for each customer in odoo

By
Pratik Parmar
on 2/16/16, 8:24 AM 612 views

I am working on custom email template where i want to set default email template for particular customer. Depending on the customer email address i want to get default template for related customer.

For Example: if odoo is in customer email address the by default odoo Template selected otherwise Others Template. (i.e email address: pratik@odoo.com then odoo email template selected by default.)

0
Krupesh Laiya
On 2/17/16, 7:29 AM

pls add one new m2o to res.partner that field have relation with template object select the template while creating the partner and you have to create template from xml . you can find reference for how to create email template odoo/addons/sale/edi folder it have sale_order_action_data.xml file.

if you have still quesion then free to ask.

Already i know the flow of the email template, but i want to use this in my custom module with js.

Pratik Parmar
on 2/17/16, 9:43 AM

okay, how can you come to know that one partner/customer has assigned that particular email template? you have to define the template in partner.

Krupesh Laiya
on 2/18/16, 1:23 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/16/16, 8:24 AM
Seen: 612 times
Last updated: 2/17/16, 9:38 AM