Search 1.9 billion lines of Odoo code on GitHub

server_mode

Author: ADHOC SA
License: AGPL-3
Branch: 9.0
Repository: druidoo-dev/odoo-support
Dependencies: web
Languages: CSS (22, 12.1%), JavaScript (19, 10.4%), Python (79, 43.4%), XML (20, 11.0%), and reStructuredText (42, 23.1%)
Other branches: 10.0, 11.0, 11.0-mig-support_branding_adhoc, 12.0, 13.0, and 8.0
Other repositories: Dobtor-ingadhoc/odoo-support, Guobower/odoo-support, Nucleoos/odoo-support, OdooBulgaria/odoo-support, adhoc-dev/odoo-support, alanljj/odoo-support, aroodooteam/odoo-support, bmya/odoo-support, chenyingkun/odoo-support, coopiteasy/odoo-infrastructure, coopiteasy/odoo-support, dlplenin/odoo-support, ingadhoc/odoo-support, isoscl/odoo-support, jobiols/adhoc-odoo-support, kossovo/odoo-support, marionumza/odoo-support, mgielissen/odoo-support, mohamedhagag/odoo-support, odoobgorg/ADHOC-odoo-support, odoofans/odoo-support, repodevs/odoo-support, royalline1/odoo-support, susport/odoo-support, and wahhid/odoo-support

<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="server-mode"></a> <h2>Server Mode</h2> <p>This modules disable some functions when running databases on odoo servers with parameter server_mode = &quot;some value&quot;</p> <p>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)</p> <p>This module is also inherited by other modules so that you can disable functionalities depending on server mode. To use it:</p> <ul> <li><p class="first">import with: from openerp.addons.server_mode.mode import get_mode</p> </li> <li><dl class="first docutils"> <dt>use it like following:</dt> <dd><ul class="first simple"> <li>if mode() == 'test':</li> <li>if mode() == 'develop'</li> <li>if mode():</li> </ul> <p class="last">... etc</p> </dd> </dl> </li> </ul> <a name="installation"></a> <h3>Installation</h3> <p>To install this module, you need to:</p> <ol class="arabic simple"> <li>Just install this module</li> </ol> <a name="configuration"></a> <h3>Configuration</h3> <p>To configure this module, you need to:</p> <ol class="arabic simple"> <li>Set a parameter on your odoo.conf file lie &quot;server_mode = test&quot;</li> </ol> <a class="reference external image-reference" href="https://runbot.adhoc.com.ar/"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="known-issues-roadmap"></a> <h3>Known issues / Roadmap</h3> <ul class="simple"> <li>...</li> </ul> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/ingadhoc/{project_repo}/issues">GitHub Issues</a>. 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.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>ADHOC SA: <a class="reference external" href="http://fotos.subefotos.com/83fed853c1e15a8023b86b2b22d6145bo.png">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="https://www.adhoc.com.ar"><img alt="Odoo Community Association" src="http://fotos.subefotos.com/83fed853c1e15a8023b86b2b22d6145bo.png" /></a> <p>This module is maintained by the ADHOC SA.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://www.adhoc.com.ar">https://www.adhoc.com.ar</a>.</p>