AutoVacuum Mail Message

autovacuum_mail_message
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/9.0/autovacuum_mail_message
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSPedro M. Baeza, oca-travis
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web_kanban
    - web
    - bus
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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
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')