How to show only installed module's menu in drop-down list

148 views Asked by At

I made one drop-down list and now I want to show in this drop-down only which modules I have installed.

Only installed module's menus I want to show.

1

There are 1 answers

9
Adam Strauss On

Let me try to help you.

Firstly for your learning:

->Activate Debug mode.

->Then go to Apps.

->Select any App which you want.

->Go to Module Info.

->Place your pointer at any field which are visible in front of you.

->It will give you detail of model in which all modules which are installed or not installed are placed.

Secondly for sake of answer:

-> installed_modules = self.env['ir.module.module'].search([('state', '=', 'installed')])

->Then do whatever you want.