Availability |
Odoo Online
Odoo.sh
On Premise
|
Technical Name |
server_mode |
License | AGPL-3 |
Website | http://www.adhoc.com.ar |
Versions | 8.0 9.0 |
Server Mode
This modules disable some functions when running databases on odoo servers with parameter server_mode = "some value"
It also disable crons for instances with server_mode value (NOTA: tal vez veamos que nos conviene usar cron activados en no prod, en este caso podemos desactivarlos en el odoo conf usando el entrypoint para que segun el tipo o algun parametro los desactive)
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:
- Just install this module
Configuration
To configure this module, you need to:
- Set a parameter on your odoo.conf file lie "server_mode = test"
Known issues / Roadmap
- ...
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 smashing it by providing a detailed and welcomed feedback.
Credits
Images
- ADHOC SA: Icon.
Contributors
Maintainer
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