Skip to Content
Menu
This question has been flagged

How to achieve using existing settings/configurations of Odoo server v8 one of the following:

  • disable installation of or blacklist particular module in the server instance (so it can NOT be installed in any database through this server instance using UI)

  • disable installation or blacklist group of modules by type, say disable installation of community modules

  • disable installation or blacklist modules by category, lets say disable installation of modules of "Project" category or "Sales" category

  • inverse of above listed, enable installation only for some group or type or listed modules

any tips?

Avatar
Discard

You could create an automated action for write on model ir.module... When a user click on install, a write is done with status "to_install" via function state_update... There you can check if it is allowed or not according your own conditions... Or add you custom code in function button_install_immediate... Do it in a module depends 'base' with mode auto install so it will be installed on each database automatically at creation... Just a tips, a better solution probably exists...

Author

Thanks for reply @Jérémy, useful tips. but they require me to be involved in development of this feature for me in some level, if I want to have it... however, I think Odoo should deliver such setting out of the box. It should be possible to setup this somewhere in settings or somehow, is it? that's my question.

Author

one more option by @Jérémy:

I dont know the impact but you can maybe try to do it with access rule removing the read access on some ir module... (Eg: ir module with name like website% is installable (writable) only by new group settings_website) But even if it works... that will be an hard configuration ...
JKE

Best Answer

You can add key "excludes" in the __manifest__.py file for this goal:

"excludes": ["name_of_module_to_exclude"]

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 15
8911
0
May 20
2728
3
Dec 19
4915
7
Apr 17
13074
1
Mar 15
7862