Odoo Help


[SOLVED] Add a message in "oe_chatter" - "Messages and communication history" box.

on 5/16/15, 11:26 AM 2,720 views

Hi Everyone,

I noticed that at the end of the view for Sales there is a "Messages and communication history" box.

Below the code:

<div class="oe_chatter">

<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>

<field name="message_ids" widget="mail_thread"/>


I created an personal action ( button). How is possible to automatically add a message in "oe_chatter" when someone click on my button?

Thank you a lot,


On 5/18/15, 6:37 AM

Try this code to send messages to all followers of the object:

        body = "My Message!"

       records = self._get_followers(cr, uid, ids, None, None, context=context) followers = records[ids[0]]['message_follower_ids'] self.message_post(cr, uid, ids, body=body, subtype='mt_comment', partner_ids=followers, context=context)


Hi Peter. It is exactly what I needed. Thank you a lot!

on 5/24/15, 4:07 AM

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

1 follower(s)


Asked: 5/16/15, 11:26 AM
Seen: 2720 times
Last updated: 10/30/17, 10:04 AM