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():
To install this module, you need to:
- Just install this module
To configure this module, you need to:
- Set a parameter on your odoo.conf file lie "server_mode = test"
Known issues / Roadmap
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.
- ADHOC SA: Icon.
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.