Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

6

Module : ERP in maintenance mode

By
Thierry Godin
on 3/30/14, 9:48 AM 3,519 views

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.

Module name not displayed under Settings ---> Configuration

Med Said BARA
on 3/30/14, 1:39 PM

Really helpful. Thanks for sharing!

Stefan Feilmeier
on 3/31/14, 7:51 AM

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.

Sylvain LE GAL
on 4/3/14, 12:22 PM

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

Thierry Godin
on 4/3/14, 1:31 PM

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.

Sylvain LE GAL
on 4/3/14, 1:38 PM

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

Thierry Godin
on 4/4/14, 5:10 AM

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.

Sylvain LE GAL
on 4/4/14, 6:03 AM

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)

Thierry Godin
on 4/4/14, 6:12 AM

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.

Thierry Godin
on 4/4/14, 7:14 AM

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

Thierry Godin
on 4/4/14, 6:41 PM

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?

Luke Branch
on 8/22/14, 7:25 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 3/30/14, 9:48 AM
Seen: 3519 times
Last updated: 3/16/15, 8:10 AM