Skip to Content
Menú
This question has been flagged
2 Respostes
16467 Vistes

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
Best Answer

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'])

Best Answer
Check from Controller

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


Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
d’ag. 19
10393
3
de jul. 25
1984
3
de maig 25
3464
2
de juny 25
4020
0
de juny 21
2327