OdooWiki OCA HUB

Mail History Mark as Unread

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

This module introduces a "Mark as Unread" button for messages in the History mailbox and Search results of the Discuss App. When done the message is restored back to the Inbox, just like if it were a new unread message, and disappears from the History mailbox.

The button is also available in the Search Messages panel (accessible via the search icon in Discuss), allowing users to mark any searched message as unread directly from the search results.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Adds a 'Mark as Unread' button to messages in the Discuss History mailbox and in Search results, so a message can be moved back to the Inbox as if it were new and unread.

This module extends the Discuss app in Odoo. It adds a 'Mark as Unread' action (eye-slash icon) to messages that are shown in the History mailbox and in the Search Messages panel.

When a user clicks the button, the message is marked as unread again for that user and is moved from History back to the Inbox. The Inbox counter is updated immediately, and the message disappears from the History list. If the action is used from search results, the message is also removed from the current search result list.

Behind the scenes, the module works on mail.message and its notifications. It reverses the effect of marking a message as done: the related notification is set back to unread, the needaction counter is recalculated, and a bus notification is sent so the user's interface updates without reloading the page.

The button only appears when it makes sense: for persistent messages in History, or for messages shown in a message card during a search when they are not already waiting for action. No new menus or reports are added; the change is visible directly inside the Discuss screens.

Depends on

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

Text generated by AI (DeepSeek) from reading the Odoo 17.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: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.