Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
16490 Tampilan

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
Buang
Jawaban Terbai

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
Buang

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

Jawaban Terbai
Check from Controller

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 19
10438
3
Jul 25
1998
3
Mei 25
3484
2
Jun 25
4052
0
Jun 21
2356