Odoo Help

0

odoo8: message_post() does not send E-Mail to followers for crm.lead?!?

By
Michael Karrer
on 12/2/14, 2:07 PM 2,651 views

What i do:

  • Create a New Lead AND assign a Sales Team
  • Because of the Sales Team there are three Followers for the newly created lead
  • Post a message with message_post()

I would expect that all followers of the new lead will receive an e-mail BUT THEY DONT?!?

The normal E-Mail (the one for the lead creation is send cie E-Mail but messge_post() does not send E-Mails?!? What do i need to do to send E-Mails also when posting a message in code?!?

Here is how i call the message_post: 

leadrecord.message_post(body=recordtext, subject=values['name'], type='email', subtype='mt_lead_create', content_subtype='plaintext')

Also tried with:

leadrecord.message_post(body=recordtext, subject=values['name'], type='notification',  content_subtype='plaintext')

Message is posted BUT no E-Mails are send :( 

I'm trying to do the same. Did you manage to send an email!

Pascal Tremblay
on 11/7/15, 1:38 PM
0

IT Libertas

--IT Libertas--
813
| 4 3 7
Saint Petersburg, Russian Federation
--IT Libertas--

Visit us: itlibertas.com

IT Libertas is a team of developers and automation experts to help you to unlock Odoo ERP system's potential. We have been communicating with end users to whom the software became a main business tool since 2012. As a result, we are proud of dozens of successful implementations.

IT Libertas guarantees deadlines predictability and transparent pricing. We rely upon the best international practices and invest in local markets' study. That is why the company's services are in demand of European, Asian, American and African entrepreneurs.

We are open for cooperation and keep searching for new solutions to the end that IT Libertas clients go ahead of the curve, deal with less routine and generate more profit.

IT Libertas
On 3/28/16, 5:27 AM

Try use 'mt_comment' in subtype (since your followers may not be subscribed to 'Lead Created', but most probably are assigned to "Discussion"): 

leadrecord.message_post(body=recordtext, subject=values['name'],  subtype='mt_comment')

Besides, check that your followers' preferences do not contain "Receive Messages" - "Never"

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.

Register

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)

Stats

Asked: 12/2/14, 2:07 PM
Seen: 2651 times
Last updated: 3/28/16, 5:27 AM