v 11.0 v 12.0 Third Party 128
Download for v 12.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 191
Technical Name server_mode
LicenseAGPL-3
Websitehttp://www.adhoc.com.ar
Versions 12.0 11.0
You bought this module and need support? Click here!
License: AGPL-3

Server Mode

This modules disable some functions when running databases on odoo servers with parameter server_mode = "some value". It will show a ribbon in the instance which text will be the value saved in server_mode paramater: if this one is not set then will not show any ribbon.

This module already disable this things on none production environments:

  1. Disable send mail

  2. Disable Fetchmail

  3. Disable odoo crons

    NOTE Maybe we see that is better to use activated ir.cron in a not production environment, in this case we can disable them in the odoo.conf using entrypoint.sh taking into account the environment type or any other parameter that could disable them.

This module is also inherited by other modules so that you can disable functionalities depending on server mode. To use it:

  • import with: from openerp.addons.server_mode.mode import get_mode

  • use it like any of the following:

    if get_mode() == 'test':
    if get_mode() == 'develop'
    if get_mode():
    

Installation

To install this module, you do not need to anything, just install this module.

Configuration

To configure this module, you need to:

  • Set a parameter on your odoo.conf file lie "server_mode = test"

Usage

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits

Images

  • ADHOC SA icon

Contributors

Maintainer

ADHOC SA

This module is maintained by the ADHOC SA.

To contribute to this module, please visit https://www.adhoc.com.ar.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.