Odoo Help


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

Alexander Soare
on 7/12/16, 2:01 PM 870 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?

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: 7/12/16, 2:01 PM
Seen: 870 times
Last updated: 10/25/16, 4:34 AM