You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
618 B

  1. # Copyright (C) 2019-Today: GRAP (<http://www.grap.coop/>)
  2. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo import api, fields, models
  5. class BaseModuleUpdate(models.TransientModel):
  6. _inherit = 'base.module.update'
  7. analyse_installed_modules = fields.Boolean(
  8. string='Analyse Installed Modules', default=True)
  9. @api.multi
  10. def update_module(self):
  11. return super(BaseModuleUpdate, self.with_context(
  12. analyse_installed_modules=self.analyse_installed_modules)
  13. ).update_module()