Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
16546 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen

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

Beste Antwort
Check from Controller

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


Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Aug. 19
10481
3
Juli 25
2035
3
Mai 25
3551
2
Juni 25
4092
0
Juni 21
2369