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.

14 lines
417 B

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