Impacted versions: 11.0

Steps to reproduce: Uninstall hr_timesheet

Current behavior: Project --> Reporting --> Task Analysis
![](https://image.prntscr.com/image/BH5ZQxUMTjqzCq4B8U1yFA.png)

Expected behavior: Report Should be there.

Video/Screenshot link (optional):


loaded_modules = []
    registry = odoo.registry(cr.dbname)
    migrations = odoo.modules.migration.MigrationManager(cr, graph)
    module_count = len(graph)
    _logger.info('loading %d modules...', module_count)
    registry.clear_caches()
    
    t0 = time.time()
    t0_sql = odoo.sql_db.sql_counter
    for index, package in enumerate(graph, 1):
        module_name = package.name
        module_id = package.id
        if skip_modules and module_name in skip_modules:
            continue
        _logger.debug('loading module %s (%d/%d)', module_name, index, module_count)
        migrations.migrate_module(package, 'pre')
        load_openerp_module(package.name)
        new_install = package.state == 'to install'
        if new_install:
            py_module = sys.modules['odoo.addons.%s' % (module_name,)]
            pre_init = package.info.get('pre_init_hook')
            if pre_init:
                getattr(py_module, pre_init)(cr)
        model_names = registry.load(cr, package)
        loaded_modules.append(package.name)
        if hasattr(package, 'init') or hasattr(package, 'update') or package.state in ('to install', 'to upgrade'):
            registry.setup_models(cr)
            registry.init_models(cr, model_names, {'module': package.name})
            cr.commit()
        idref = {}