Author: |
ADHOC SA |
License: |
AGPL-3 |
Branch: |
13.0 |
Repository: |
druidoo-dev/odoo-support |
Dependencies: |
fetchmail,
web,
and
web_environment_ribbon |
Languages: |
PO File (15, 8.9%),
Python (107, 63.7%),
and
reStructuredText (46, 27.4%) |
Other branches: |
10.0,
11.0,
11.0-mig-support_branding_adhoc,
12.0,
8.0,
and
9.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="https://www.gnu.org/licenses/agpl"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></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 = "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.</p>
<p>This module already disable this things on none production environments:</p>
<ol class="arabic">
<li><p class="first">Disable send mail</p>
</li>
<li><p class="first">Disable Fetchmail</p>
</li>
<li><p class="first">Disable odoo crons</p>
<p><strong>NOTE</strong> 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.</p>
</li>
</ol>
<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><p class="first">use it like any of the following:</p>
<pre>
<code>if get_mode() == 'test':
if get_mode() == 'develop'
if get_mode():</code>
</pre>
</li>
</ul>
<a name="installation"></a>
<h3>Installation</h3>
<p>To install this module, you do not need to anything, just install this module.</p>
<a name="configuration"></a>
<h3>Configuration</h3>
<p>To configure this module, you need to:</p>
<ul class="simple">
<li>Set a parameter on your odoo.conf file lie "server_mode = test"</li>
</ul>
<a name="usage"></a>
<h3>Usage</h3>
<a class="reference external image-reference" href="http://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="bug-tracker"></a>
<h3>Bug Tracker</h3>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/ingadhoc/odoo-support/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 smash it by providing 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 <img alt="icon" src="https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png" /></li>
</ul>
<a name="contributors"></a>
<h4>Contributors</h4>
<a name="maintainer"></a>
<h4>Maintainer</h4>
<p><a class="reference external" href="https://www.adhoc.com.ar"><img alt="ADHOC SA" src="https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png" /></a></p>
<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>