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
""" Context manager to signal/discard registry and cache invalidations. """
        try:
            yield self
            self.signal_changes()
        except Exception:
            self.reset_changes()
            raise
    def in_test_mode(self):
        """ Test whether the registry is in 'test' mode. """
        return self.test_cr is not None
    def enter_test_mode(self):
        """ Enter the 'test' mode, where one cursor serves several requests. """
        assert self.test_cr is None
        self.test_cr = self._db.test_cursor()
        assert Registry._saved_lock is None
        Registry._saved_lock = Registry._lock
        Registry._lock = DummyRLock()
    def leave_test_mode(self):
        """ Leave the test mode. """
        assert self.test_cr is not None
        self.clear_caches()
        self.test_cr.force_close()
        self.test_cr = None
        assert Registry._saved_lock is not None
        Registry._lock = Registry._saved_lock
        Registry._saved_lock = None
    def cursor(self):