Skip to Content
Menu
This question has been flagged
2 Replies
16641 Rodiniai

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?

Portretas
Atmesti
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. 

Portretas
Atmesti

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
rugp. 19
10581
3
liep. 25
2125
3
geg. 25
3717
2
birž. 25
4191
0
birž. 21
2423