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):


odoo/modules/loading.py
env['ir.ui.view']._validate_module_views(module_name)
            if has_demo:
                
                if tools.config.options['test_enable']:
                    
                    report.record_result(load_test(module_name, idref, mode))
                    
                    env['ir.http']._clear_routing_map()     
                    report.record_result(odoo.modules.module.run_unit_tests(module_name, cr.dbname))
                    
                    env = api.Environment(cr, SUPERUSER_ID, {})
                    module = env['ir.module.module'].browse(module_id)
            processed_modules.append(package.name)
            ver = adapt_version(package.data['version'])
            
            module.write({'state': 'installed', 'latest_version': ver})
            package.load_state = package.state
            package.load_version = package.installed_version
            package.state = 'installed'
            for kind in ('init', 'demo', 'update'):
                if hasattr(package, kind):
                    delattr(package, kind)
        if package.name is not None:
            registry._init_modules.add(package.name)
        cr.commit()
    _logger.log(25, "%s modules loaded in %.2fs, %s queries", len(graph), time.time() - t0, odoo.sql_db.sql_counter - t0_sql)
    registry.clear_caches()
    cr.commit()
    return loaded_modules, processed_modules
def _check_module_names(cr, module_names):