Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
12 Respostas
11509 Visualizações

Hi all,

Because I needed it, I did it.

Here is TG_Erp_Status Module, that allows to put openERP in Maintenance Mode.

When in Maintenance mode, only Administrator can use OpenERP. A message is displayed for all other users.

I use it to make updates, and to be sure no user is working during the update. Easy to install, easy to use. Just create Maintenance messages, and maintenances mode. Select proper Mode as "Current ERP Status" (Ie : opened, or closed)

Some screenshots :

This is the message that is displayed when in Maintenance mode for all users :

This is the message that is displayed when in Maintenance mode

ERP Status messages :

ERP Status messages

ERP Status modes :

ERP Status modes

Menu is in Configuration > Configuration :

Menu

When in Maintenance Mode, just turn it back to "Open" mode to allow users to use OpenERP again.

Download link : tg_erp_status_1.1.0.zip

Of course, you can tune Css, or change anything as well to fit your needs.

Regards


EDIT : 04/04/2014 :

I added a new feature :

An internal status frame to recall the admin that the ERP is closed (to not forget to reopen). Internal status frame

Module is updated and download link updated too.

Stay tuned.

Avatar
Cancelar

Module name not displayed under Settings ---> Configuration

Really helpful. Thanks for sharing!

Hi. Thanks Thierry, the module can be very usefull. What about sharing this module in a community project like 'server-env-tools' ? (https://launchpad.net/server-env-tools/7.0). Regards.

Autor

Sure Sylvain, it's a good idea, but I'm not familiar withn Bazaar.I should learn it but I have no time yet.

All right. No problem. Are you agree if I work on the merge proposal of this module in a while, keeping copyright & licence informations ? Regards.

Autor

Yes, sure, but if you could wait a few, because I 'm updating the module right now : I'm adding a frame that is displayed Under top menu in order to display the current status of the ERP when it is in maintenance mode, because, when admin is logged on, and the ERP is in maintenance mode, he could forget taht ERP is closed (it happened to me this morning)...

I'll update the module in a couple of days (maybe on saturday) Regards

Hi.

Yes add a frame or a banner could be good ! (maybe you can reuse OpenERP SA code that add a banner when you use an unsupported version of OpenERP). No problem If I do that, it will be in a weeks. Other question, did you manage the case in the user is logged and you put the server under maintenance, to display a nice message. I didn't see in your code any controllers.py file. (but i didn't test it.);

Regards.

Autor

When a user is already logged in, and the ERP comes in maintenance mode, the message you set is displayed . Maybe there is a smart way to do that, I don't know. I started learning PY + Openerp on may 2013. I'm still learning ;o)

Autor

I updated first post with the new feature. But I have to update the module for the community. I'll do that probably on saturday.

Autor

Ok Sylvain, I updated the module and the dl link.

Hi Thierry, This looks like it would be very useful for 8.0 as well. Do you have any plans to port the module to the 8.0 branch?

Melhor resposta

Hello,

We have created new app for latest version of Odoo for this purpose, please check: https://www.odoo.com/apps/modules/10.0/odoo_server_maintenance/


Regards,

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
fev. 25
1491
1
jul. 24
1798
1
jan. 24
4893
2
jan. 24
1698
2
dez. 23
1675