Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I noticed that at the end of the view for Sales there is a "Messages and communication history" box.
Below the code:
<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,
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]['message_follower_ids'] self.message_post(cr, uid, ids, body=body, subtype='mt_comment', partner_ids=followers, context=context)
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
|Asked: 5/16/15, 11:26 AM|
|Seen: 2720 times|
|Last updated: 10/30/17, 10:04 AM|