跳至内容
菜单
此问题已终结
2 回复
16461 查看

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
10392
3
7月 25
1983
3
5月 25
3463
2
6月 25
4016
0
6月 21
2326