Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
9022 Zobrazení

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
Zrušit

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

Autor

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.

Autor

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

Nejlepší odpověď

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

"excludes": ["name_of_module_to_exclude"]

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
8955
0
kvě 20
2770
3
pro 19
4953
7
dub 17
13141
1
bře 15
7895