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


from . import models
from . import controllers
from . import report
from . import wizard
from functools import partial
import odoo
from odoo import api, SUPERUSER_ID
def uninstall_hook(cr, registry):
    def update_dashboard_graph_model(dbname):
        db_registry = odoo.modules.registry.Registry.new(dbname)
        with api.Environment.manage(), db_registry.cursor() as cr:
            env = api.Environment(cr, SUPERUSER_ID, {})
            if 'account.invoice.report' in env:
                env['account.invoice.report'].init()
            if 'crm.team' in env:
                recs = env['crm.team'].search([])
                for rec in recs:
                    rec._onchange_team_type()
    cr.after("commit", partial(update_dashboard_graph_model, cr.dbname))