Deleted Message Recovery: restore and copy a chatter message, find orphaned messages
by Aerya IT Solutions https://aerya.net$ 54.79
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Get back the chatter message someone deleted
Odoo erases a deleted message for good. Chatter Tools keeps a copy for 30 days so you can restore it with its files, copies a message to another record, and finds messages that lost their record.
Copy an e-mail or note with its files to another record
Report of messages whose record is gone
You choose how long copies are kept
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 19 Enterprise with the data of a fictitious company.
delete, restore, purge, copy, orphan scan, access rights, and browser tours of the chatter menu
no warnings, on the four versions
depends on Discuss alone, tested on Community and Enterprise
A deleted chatter message is gone for good
Someone deletes a message in the chatter by mistake: a quote, an instruction from the customer, an e-mail with a drawing. Odoo empties it, and the files go with it. Elsewhere, a message was posted on the wrong record and has to be copied to the right one by hand. After a database import or a module removal, other messages point to records that no longer exist, and nobody sees them any more.
What it does
The module keeps a copy of every deleted message for the number of days you set, restores it with one click, copies a message with its files to another record, and lists the messages that lost their record.
How it works, step by step
- Install the module. From then on deleted messages are kept, 30 days by default.
- Set the duration. In Settings, General Settings, Discuss, the setting Deleted chatter messages gives the days a deleted message stays restorable. 0 keeps nothing.
- Restore. Open Chatter Tools, Deleted Messages, select the message and press Restore. It returns to its record with its files, author and date. Files still on the record are reused, not duplicated.
- Copy. In the message menu of a chatter, choose Copy to another record. In the Messages list, the Actions menu has Copy messages.
- Find the orphans. An administrator opens Chatter Tools, Orphan Messages. Select messages and press Attach to a record, or delete them.
A deleted message is not lost
When someone deletes a message from a chatter, Odoo empties it for good. With this module a copy is kept in Chatter Tools › Deleted Messages: text, subject, author, date and every attached file.
Each user sees the messages they deleted; administrators see all of them.

Restore it in one click
Press Restore and the message is back in the chatter of its record, with its files, its original author and its date. Nobody gets a new notification.
Restoring needs write access on the record, like posting a message does. If the record was deleted meanwhile, the module tells you so instead of guessing.

Copy a message to another record
A quote sent to the wrong customer, a delivery note that belongs to two orders? Open the message menu and choose Copy to another record. The text and the attachments are copied to any record with a chatter that you can edit. The original stays where it is.

A copy never passes for the original
The copy keeps the author and the date of the message, and always carries a line saying where it was copied from, by whom and when. The line links to the original record only for people who can read it. Internal notes stay internal, and nothing is sent to followers.

Everything deleted, in one list
Deleted Messages lists what was deleted, by whom, from which record, and when the copy expires. Search the text, group by user, document type or day, and restore several messages at once from the Actions menu.

You decide how long copies stay
Copies are kept for 30 days by default; change it in Settings › General Settings › Discuss, or set 0 to keep nothing. A scheduled action removes expired copies and their files every day, so the database does not fill up.

Find messages that lost their record
After a database import, a module removal or a direct cleanup in the database, some messages point to a record that is gone and nobody sees them any more. Orphan Messages scans the database and lists them with the reason: the record was deleted, the document type is not installed, or the message was never linked to a record.

Attach them where they belong
Select the messages, press Attach to a record and choose the right customer, order or ticket. The messages and their files move there. What no one needs any more is deleted from the same list. Only Chatter Tools administrators can open this report.

Settings and options
| Deleted chatter messages | Days a deleted message stays restorable. 0 keeps nothing. |
| Scheduled action | A daily action removes expired copies and their files. |
| Who sees what | A user sees and restores the messages they deleted. Administrators see all. The orphan report is for administrators only. |
Both models respect the allowed companies. Restoring goes through a method that checks write access on the record.
What it does not do
- Restoring a message whose record was deleted stops with a message.
- Restoring or copying into a record the user cannot edit is refused.
- System notifications (field changes), messages of Discuss channels and messages already on the target record cannot be copied.
- Messages deleted while the setting is 0, messages removed together with their record, system notifications and the mails Odoo deletes after sending them are not kept.
- Moving a message from one record to another is done by another module of ours, Mail Routing. The two work side by side.
Requirements
- Odoo 17, 18, 19 or 20, Community or Enterprise.
- Odoo Discuss (
mail), and nothing else. - A host that allows modules with Python code: Odoo.sh or your own server.
- English and Spanish translations.
Frequently asked questions
Does a restored message notify the followers?
No. Nobody gets a new notification, and a copy sends none either.
Can a copy be mistaken for the original?
No. It keeps the author, the date and the employee-only flag, and ends with a line saying where it was copied from, by whom and when.
Does it keep messages forever?
No. Copies expire after the number of days you set.
What about attachments?
They are kept with the copy, restored with the message and copied with it.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 19, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 980 |
| Technical Name |
aerya_chatter_tools |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module