Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
6204 Vistas

I have searched and searched but could not find an answer. I have a client, and I want to prevent him from ever installing am module, say in this case Website Builder.

What is the recommended process? I tried setting Installable to False, but the module still showed up the Modules List.

Avatar
Descartar
Mejor respuesta

If you don want the module in module list , modifiy __openerp__.py
and set installable='False' ... that will hide the module form enlisting for instalation.. 
after that you should update modules list.
If module is still visible execute something like this from any db management tool ,(pgadmin3, psql etc..):
delete from ir_module_module where name='your_module_name';

 

Also.. you can remove admin rights from user, and he will not be able to install anything.. 
(better way)

But i'm realy not sure if you can selectivly allow/deny instalation of certain modules... while other are not restricted.. 

In general.. user which have rights to install modules (usualy admin) , 
should know what he is doing, and should be responsable for any actions he does.. 

 

hope it helps

Avatar
Descartar
Mejor respuesta

A trick that I usually used: change the state of that module into something unrecognizable by the system ('installed', 'uninstalled', 'to remove', 'to upgrade', 'to install' are recognized).  But this requires a direct query to the database.

Avatar
Descartar
Mejor respuesta

It seems that you provide a source code directory for each client (no sharing across databases).  Why not  just rename the directory?

Avatar
Descartar
Mejor respuesta

Probably the best way, for this user, if you clear the check box Technical Features or remove access Administrations=Settings, on user view.

Avatar
Descartar