| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 91 |
| Technical Name |
chatter_message_clear_tspl |
| License | LGPL-3 |
| Versions | 17.0 18.0 19.0 |
Chatter Message Clear
Delete all chatter messages from the current record using a clean trash icon, a confirmation dialog, and controlled group-based access.
Why Use This Module?
Standard Odoo chatter is useful for collaboration, but some businesses need a controlled and safe way to clean message history from a specific document. This module adds that feature without exposing it to every user.
Business Benefits
- Remove unwanted chatter history quickly
- Prevent accidental deletion with confirmation
- Show the action only to selected users
- Work directly inside standard backend chatter
Best Fit For
- Training or demo databases
- Support teams cleaning temporary discussions
- Operational records with controlled cleanup needs
- Custom business processes requiring chatter hygiene
Main Features
Focused functionality, clean user experience, and clear security boundaries.
Trash Icon Action
Adds a dedicated trash icon in the chatter top bar.
Confirmation Dialog
Warns the user before deleting chatter messages.
Group Security
Only users in the dedicated group can access the action.
Access Control
Bulk chatter cleanup is intentionally restricted and validated in both the user interface and the backend method.
Security Logic
- Creates a group named Chatter Message Clear
- Shows the trash icon only to users in that group
- Validates group membership again in the backend method
- Prevents unauthorized users from triggering the cleanup action
User Flow
How It Works
- Open a record with chatter
- Click the trash icon in the chatter top bar
- Confirm deletion
- See the chatter refresh immediately
What Gets Deleted?
Deletion Scope
- Deletes
Messageslinked to the current record - Excludes
Attachments & Activitiesfrom the cleanup query - Also excludes
Customer Repliesfrom the cleanup query - Acts only on the current document
- Refreshes the current chatter after deletion
Installation and Setup
- Copy the module to your custom addons path
- Restart the Odoo server
- Update the apps list
- Install Chatter Message Clear
- Assign the Chatter Message Clear group to allowed users
- Open a record with chatter and test the trash icon
Frequently Asked Questions
Can every internal user delete chatter messages?
No. Only users assigned to the Chatter Message Clear group can use the action.
Is confirmation required before deletion?
Yes. The module shows a confirmation dialog before deleting chatter messages.
Does it work on all models with chatter?
It is designed for standard backend form views using
chatter on mail.thread-enabled models.
Support and Customization
Need customization, support, or implementation help for this module? Contact us for installation assistance, feature enhancements, issue resolution, and module-specific development.
Email: technostellar03@gmail.com
Please log in to comment on this module