Odoo Server Mode
5 March, 2021 by
Odoo Server Mode
| No comments yet

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


To install this module, you need to:

  1. Just install this module


To configure this module, you need to:

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


Sign in to leave a comment