Impacted versions: 11.0

Steps to reproduce: Uninstall sale_stock module

Current behavior: Go to Sales --> Reporting -->Sales
![](https://image.prntscr.com/image/4QYjRZL4TSeP6IbXnN8hwg.png)

Expected behavior: Report Should be there.

Video/Screenshot link (optional):


odoo/modules/registry.py
self.registry_invalidated = False
        self.cache_invalidated = False
        with closing(self.cursor()) as cr:
            has_unaccent = odoo.modules.db.has_unaccent(cr)
            if odoo.tools.config['unaccent'] and not has_unaccent:
                _logger.warning("The option --unaccent was given but no unaccent() function was found in database.")
            self.has_unaccent = odoo.tools.config['unaccent'] and has_unaccent
    @classmethod
    def delete(cls, db_name):
        """ Delete the registry linked to a given database. """
        with cls._lock:
            if db_name in cls.registries:
                registry = cls.registries.pop(db_name)
                registry.clear_caches()
                registry.registry_invalidated = True
    @classmethod
    def delete_all(cls):
        """ Delete all the registries. """
        with cls._lock:
            for db_name in list(cls.registries.keys()):
                cls.delete(db_name)
    #
    
    
    #
    def __len__(self):
        """ Return the size of the registry. """
        return len(self.models)
    def __iter__(self):