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.
21 lines
579 B
21 lines
579 B
# -*- coding: utf-8 -*-
|
|
# Copyright 2017 LasLabs Inc.
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
|
|
|
from odoo import api, models
|
|
|
|
|
|
class ModuleUpgrade(models.TransientModel):
|
|
_inherit = 'base.module.upgrade'
|
|
|
|
@api.multi
|
|
def upgrade_module_cancel(self):
|
|
return super(
|
|
ModuleUpgrade,
|
|
self.with_context(retain_checksum_installed=True),
|
|
).upgrade_module_cancel()
|
|
|
|
@api.multi
|
|
def upgrade_module(self):
|
|
self.env['ir.module.module'].update_list()
|
|
super(ModuleUpgrade, self).upgrade_module()
|