Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Community Apps Dependencies | Show |
Lines of code | 191 |
Technical Name |
server_mode |
License | AGPL-3 |
Website | http://www.adhoc.com.ar |
Versions | 12.0 11.0 |
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:
Disable send mail
Disable Fetchmail
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
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
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