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.

13 lines
393 B

7 years ago
  1. # Copyright 2017 LasLabs Inc.
  2. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
  3. from odoo import SUPERUSER_ID, api
  4. def post_init_hook(cr, registry):
  5. env = api.Environment(cr, SUPERUSER_ID, {})
  6. installed_modules = env['ir.module.module'].search([
  7. ('state', '=', 'installed'),
  8. ])
  9. for r in installed_modules:
  10. r.checksum_installed = r.checksum_dir