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
13 lines
393 B
# Copyright 2017 LasLabs Inc.
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
|
|
|
from odoo import SUPERUSER_ID, api
|
|
|
|
|
|
def post_init_hook(cr, registry):
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
installed_modules = env['ir.module.module'].search([
|
|
('state', '=', 'installed'),
|
|
])
|
|
for r in installed_modules:
|
|
r.checksum_installed = r.checksum_dir
|