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.
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.
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.