# -*- coding: utf-8 -*-
# eCore es una marca registrada. Todos los derechos reservados. 2008 - 2016

from ecore import models

class AutoVacuum(models.TransientModel):
    _inherit = 'ir.autovacuum'

    def power_on(self, cr, uid, *args, **kwargs):
        self.pool['mail.thread']._garbage_collect_attachments(cr, uid)
        return super(AutoVacuum, self).power_on(cr, uid, *args, **kwargs)
