19 lines
618 B
Python
19 lines
618 B
Python
# Copyright (C) 2019-Today: GRAP (<http://www.grap.coop/>)
|
|
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class BaseModuleUpdate(models.TransientModel):
|
|
_inherit = 'base.module.update'
|
|
|
|
analyse_installed_modules = fields.Boolean(
|
|
string='Analyse Installed Modules', default=True)
|
|
|
|
@api.multi
|
|
def update_module(self):
|
|
return super(BaseModuleUpdate, self.with_context(
|
|
analyse_installed_modules=self.analyse_installed_modules)
|
|
).update_module()
|