parameters: (self)
return_statement: return [{
              'id': message.id,
              'res_id': message.res_id,
              'model': message.model,
              'res_model_name': message.env['ir.model']._get(message.model).display_name,
              'date': message.date,
              'message_type': message.message_type,
              'notifications': message.notification_ids._filtered_for_web_client()._notification_format(),
          } for message in self]
docstring: Returns the current messages and their corresponding notifications in
          the format expected by the web client.
  
          Notifications hold the information about each recipient of a message: if
          the message was successfully sent or if an exception or bounce occurred.
docstring_summary: Returns the current messages and their corresponding notifications in
          the format expected by the web client.
docstring_tokens: Returns the current messages and their corresponding notifications in the format expected by the web client .
function: def _message_notification_format(self):
          """Returns the current messages and their corresponding notifications in
          the format expected by the web client.
  
          Notifications hold the information about each recipient of a message: if
          the message was successfully sent or if an exception or bounce occurred.
          """
          return [{
              'id': message.id,
              'res_id': message.res_id,
              'model': message.model,
              'res_model_name': message.env['ir.model']._get(message.model).display_name,
              'date': message.date,
              'message_type': message.message_type,
              'notifications': message.notification_ids._filtered_for_web_client()._notification_format(),
          } for message in self]
function_tokens: def _message_notification_format ( self ) : return [ { 'id' : message . id , 'res_id' : message . res_id , 'model' : message . model , 'res_model_name' : message . env [ 'ir.model' ] . _get ( message . model ) . display_name , 'date' : message . date , 'message_type' : message . message_type , 'notifications' : message . notification_ids . _filtered_for_web_client ( ) . _notification_format ( ) , } for message in self ]