'Return the set of installed modules as a dictionary {name: id}'

@api.model
@tools.ormcache()
def _installed(self):

    return {module.name: module.id for module in self.sudo().search([('state', '=', 'installed')])}
