Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
16455 Vistas

We are trying to develop a new type of navigation page. But here we need to be able to detect as to which modules are installed in OpenERP.

How can we detect them?

Avatar
Descartar
Mejor respuesta

In your custom code you can just write down the following code to find out the installed modules.

    installed_module_ids = self.pool.get('ir.module.module').search(cr,uid,[('state','=','installed')])

It will give you ids of installed modules. Then after you can use read or browse to get another details of those modules. 

Avatar
Descartar

We can restrict the search: is_crm_installed = self.pool.get('ir.module.module').search(cr,uid,[('state','=','installed'), ('name','=','crm'])

Mejor respuesta
Check from Controller

is_gift_card_installed = request.env['ir.module.module'].search([('state', '=', 'installed'), ('name', '=', 'website_sale_gift_card')])


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 19
10392
3
jul 25
1983
3
may 25
3463
2
jun 25
4015
0
jun 21
2326