Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Tools
Folder size
0.03 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-tools
Last tracking update
2026-08-07 07:10:01
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Pedro M. Baeza, oca-travis
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
message_vacuum_rule_form_view message.vacuum.rule.form.view message.vacuum.rule form New
message_vacuum_rule_tree_view message.vacuum.rule.form.view message.vacuum.rule tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • autovacuum_mail_message(self)
    @api.model
  • batch_unlink(self)
    @api.multi

New fields (7)
  • company_id Many2one → res.company
    default=<expr> string='Company' args: 'res.company'
  • empty_subtype Boolean
    help='Take also into account messages with no subtypes'
  • message_subtype_ids Many2many → mail.message.subtype
    help="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_type Selection
    required=True args: [('email', 'Email'), ('comment', 'Comment'), ('notification', 'System notification'), ('all', 'All')]
  • model_ids Many2many → ir.model
    help='Models concerned by the rule. If left empty, it will take all models into account' string='Models' args: 'ir.model'
  • name Char
    required=True
  • retention_time Integer
    default=365 help='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
Public methods (2)
  • get_message_domain(self)
    @api.multi
  • retention_time_not_null(self)
    @api.multi@api.constrains('retention_time')