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.

11 lines
344 B

7 years ago
7 years ago
7 years ago
7 years ago
  1. # Copyright 2017 LasLabs Inc.
  2. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
  3. from odoo import SUPERUSER_ID, api
  4. from .models.module import PARAM_INSTALLED_CHECKSUMS
  5. def uninstall_hook(cr, registry):
  6. env = api.Environment(cr, SUPERUSER_ID, {})
  7. env["ir.config_parameter"].set_param(PARAM_INSTALLED_CHECKSUMS, False)