Odoo Help


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.


how to set model_name by which parent_model is evaluated in odoo mail threads

Alexander Soare
on 7/12/16, 2:01 PM 183 views

odoo 9.0 CE

addons/mail/models/mail_thread.py in method message_get_reply_to

This function compares the parent model ids set on odoo>settings>technical>email>aliases with the computed model name via 

model_name = self.env.context.get('thread_model') or self.name

When sending a message via sales leads model_name evaluates to crm.team. So to get the alias right you need to set the parent model in odoo settings to Sales Teams.

On the other hand, when sending a message via contacts, model_name evaluates to res.partner. Is there anything I can set in Odoo FE to make this crm.team instead?

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

2 follower(s)


Asked: 7/12/16, 2:01 PM
Seen: 183 times
Last updated: 10/25/16, 4:34 AM