AutoVacuum Mail Message and Attachment
Odoo create a lot of message and/or mails. With time it can slow the system or take a lot of disk space. The goal of this module is to clean these message once they are obsolete. The same may happen with attachment that we store. You can choose various criterias manage which messages you want to delete automatically.
Table of contents
Configuration
To Create AutoVacuum Rules
Go to Settings -> Technical -> Email -> Message And Attachment Vacuum Rules
Press the “New” button to add a new rule
To Configure the Attachment AutoVacuum Rule
Name: Set the name of the rule
Type: Select type “Attachment”
Company: Select a Company
Retention Time: Set Retention Time in days
Filename Pattern: Set file name pattern (for example “.png”)
Inherited Model: Set the Inherited Model (optional)
Model: Select the Model to apply the rule to
Model Filter Domain: Specify the domain for the model to select particular records only
Description: Add a description for the rule set (optional)
To Configure the Message AutoVacuum Rule
Name: Set the name of the rule
Type: Select type “Message”
Company: Select a Company
Retention Time: Set Retention Time in days
Message Type: Select the Message Type to apply the rule to:
All: Apply to all messages
Comment: Apply to comments
System Notification: Apply to system notifications
User Specific Notification: Apply to user specific notifications
Empty Subtype: Apply to messages with no subtype
Message Subtype: Press the “Add line” button and select the Chatter Message Subtype to apply the rule to
Model: Select the Model to apply the rule to
Message Filter Domain: Specify the domain for the model to select particular records only
Description: Add a description for the rule set (optional)
To Configure AutoVacuum Cron Jobs
Note: The AutoVacuum Mails and Messages and AutoVacuum Attachments scheduled actions are created by default and need to be activated.
Go to Settings -> Technical -> Automation -> Scheduled Actions
Activate the scheduled actions needed (AutoVacuum Mails and Messages and/or AutoVacuum Attachments)
Go to Actions -> Unarchive or toggle the Active status of the scheduled action
Select a record and specify the frequency of the cron job if needed
Note: It is recommended to run it frequently and when the system is not very loaded. (For instance: once a day, during the night.)
Known issues / Roadmap
You have to be careful with rules regarding attachment deletion because Odoo find the attachment to delete with their name. Odoo will find all attachments containing the substring configured on the rule, so you have to be specific enough on the other criterias (concerned models…) to avoid unwanted attachment deletion.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Florian da Costa <florian.dacosta@akretion.com>
Enric Tobella <etobella@creublanca.es>
Helly kapatel <helly.kapatel@initos.com>
Akim Juillerat <akim.juillerat@camptocamp.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/server-tools project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Metadata
Release files for odoo-addon-autovacuum-message-attachment 17.0.1.0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_autovacuum_message_attachment-17.0.1.0.1.3-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_autovacuum_message_attachment-17.0.1.0.1.3-py3-none-any.whl |
Release files / odoo_addon_autovacuum_message_attachment-17.0.1.0.1.3-py3-none-any.whl
| Download URL | odoo_addon_autovacuum_message_attachment-17.0.1.0.1.3-py3-none-any.whl |
|---|---|
| Size | 631.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9c06c5f0d0991ecc0844f59dcf61af877350e4cf86b8fcc946ff73e47aea19e
|
|
BLAKE2b-256 checksum How to use checksums |
69e53d20f8cb23caf2ea2583f6140face003ef38dd91ea7b011458bb2bfa529f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for odoo-addon-autovacuum-message-attachment 17.0.1.0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.