base_module_uninstall.py 399 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import models
  4. class BaseModuleUninstall(models.TransientModel):
  5. _inherit = "base.module.uninstall"
  6. def _get_models(self):
  7. # consider mail-thread models only
  8. models = super(BaseModuleUninstall, self)._get_models()
  9. return models.filtered('is_mail_thread')