I have chatter working for individual records of a specific model. For example, when I go into the form view and I update a field, the change is logged in the chatter.
I have an action that is called from a tree view where multiple records of this model are selected. The action updates a field all the records that are selected. This change does not show up on the chatter.
I've tried using message_post but that does not work either. Here is a code example:
def do_action(self):
items = self.env['model'].browse(
self._context.get('active_ids', []) )
for item in items:
item.update({'status': 'complete'})
item.message_post(body="item status complete.")
How do I get the chatter to show up on the individual records in their form view?