Odoo Server Mode
5 March, 2021 by
Odoo Server Mode
Administrator

Server Mode

This modules disable some functions when running databases on odoo servers with parameter server_mode = “some value”

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 following:
    • if mode() == ‘test’:
    • if mode() == ‘develop’
    • if mode():

    … etc

Installation

To install this module, you need to:

  1. Just install this module

Configuration

To configure this module, you need to:

  1. Set a parameter on your odoo.conf file lie “server_mode = test”

https://apps.openerp.com/apps/modules/9.0/server_mode/