コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
16482 ビュー

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?

アバター
破棄
最善の回答

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. 

アバター
破棄

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

最善の回答
Check from Controller

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


アバター
破棄
関連投稿 返信 ビュー 活動
0
8月 19
10429
3
7月 25
1993
3
5月 25
3476
2
6月 25
4035
0
6月 21
2336