AutoVacuum Mail Message and Attachment
autovacuum_message_attachment · OCA/server-tools
Health
67/100
fair
-
Security25/25No findings
-
Activity12/25Last human commit 22 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.4 MB
Module directory on disk
Code analysis
0 migration notes
5 models
2 views
0 HTTP endpoints
Description
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
vacuum_rule_form_view |
vacuum.rule.form.view | vacuum.rule | form | New |
vacuum_rule_tree_view |
vacuum.rule.form.view | vacuum.rule | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (2)-
autovacuum(self, ttype='message')@api.model -
batch_unlink(self)
New fields (1)
-
assigned_attachment_idsOne2many → ir.attachmentauto_join=Truedomain=<expr>string='Assigned Attachments' args: 'ir.attachment', 'res_id'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (16)
-
activeBooleandefault=True -
company_idMany2one → res.companydefault=<expr>string='Company' args: 'res.company' -
descriptionText -
empty_modelBooleanhelp='Take into account attachment not linked to any model, but only if a pattern is set, to avoid deleting attachments generated/needed by odoo' -
empty_subtypeBooleanhelp='Take also into account messages with no subtypes' -
filename_patternCharhelp='If set, only attachments containing this pattern will be deleted.' -
inheriting_modelCharhelp='If set, this model will be searched and only related attachments will be deleted.\n\nN.B: model must implement _inherits to link ir.attachment' -
message_subtype_idsMany2many → mail.message.subtypehelp="Message subtypes concerned by the rule. If left empty, the system won't take the subtype into account to find the messages to delete"string='Subtypes' args: 'mail.message.subtype' -
message_typeSelectionargs: [('email', 'Email'), ('comment', 'Comment'), ('notification', 'System notification'), ('user_notification', 'User Specific Notification'), ('all', 'All')] -
modelCharcompute='_compute_model_id'string='Model code' -
model_filter_domainText -
model_idMany2one → ir.modelcompute='_compute_model_id'help='Technical field used to set attributes (invisible/required, domain, etc...for other fields, like the domain filter' args: 'ir.model' -
model_idsMany2many → ir.modelhelp='Models concerned by the rule. If left empty, it will take all models into account'string='Models' args: 'ir.model' -
nameCharrequired=True -
retention_timeIntegerdefault=365help='Number of days the messages concerned by this rule will be keeped in the database after creation. Once the delay is passed, they will be automatically deleted.'required=True -
ttypeSelectionrequired=Trueselection=[('attachment', 'Attachment'), ('message', 'Message')]string='Type'
-
retention_time_not_null(self)@api.constrains('retention_time')
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…