OdooWiki OCA HUB

Mail Notification With History

mail_notification_with_history folder_open OCA/social open_in_new
Social Network License: AGPL-3

Followers of a discussion in the chatter of Odoo can be informed by email of a new message being created. This module adds in that email the history of the chatter discussion to help the recipient with more context.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds the previous chatter discussion to notification emails, so recipients see the full conversation context before the new message.

When Odoo sends an email notification about a new chatter message, this module can include the earlier discussion directly in that email.

  • It looks for previous messages on the same record that are either comments (using the standard comment subtype) or incoming emails, and lists them in the email under a "Discussion history in Odoo" heading.
  • Each history entry shows who wrote it, when, and the message body.
  • The history is only added when the record's model explicitly allows it: the shared mail.thread behaviour has a setting that is off by default, so nothing changes unless a model turns it on.
  • The new message itself is excluded from the history list.
  • The change is made by extending the standard notification email layout, so it applies to the normal Odoo notification emails.

It touches the mail.message model (to find the history) and the mail.thread mixin (to hold the on/off setting). No new menus or screens are added; the effect is visible in the emails that Odoo sends to followers.

Depends on

mail
Models and fields (1)
  • mail.message · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

After installing the module its behaviour needs to be activated. This is done by setting the following class variable _mail_notification_include_history to True, on the model that we would like to activate it.

No verified information in OCA: Configuration, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.