Search 1.9 billion lines of Odoo code on GitHub

server_environment_config_settings

Author: Camptocamp SA,Odoo Community Association (OCA)
License: AGPL-3
Branch: 11_0_add_server_environment_config_settings
Repository: grindtildeath/server-env
Dependencies: server_environment
Languages: Python (55, 54.5%), and reStructuredText (46, 45.5%)

<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-environment-config-settings"></a> <h2>Server Environment Config Settings</h2> <p>Override res.config.settings from server environment file. Before using this module, you must be familiar with the server_environment module.</p> <a name="installation"></a> <h3>Installation</h3> <p>There is no specific installation instruction for this module.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>To configure this module, you need to add a section <code>[res.config.settings]</code> to you server_environment_files configurations, where the key should match the field definition on <cite>res.config.settings</cite> model.</p> <p>Moreover, you have to add a dependency on server_environment_files module, to the module where the field is defined.</p> <p>When the wizard is called, fields will be automatically filled with the value defined in server_environment_files, and will be set as read only.</p> <p>For example you want to use google authentification so you define following fields in server_environment_files:</p> <pre class="code"> <code class="code">[res.config.settings] module_auth_oauth=True auth_oauth_google_enabled=True auth_oauth_google_client_id=dummy_key_for_google_oauth</code> </pre> <p>Then, as some of these fields are defined in auth_oath modules, you should add it to server_environment_files/__manifest__.py:</p> <pre class="code"> <code class="code">'depends': ['base', 'auth_oauth']</code> </pre> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/143/11.0"><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>Admin user has to execute the wizard for the values to be stored in the database.</li> </ul> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-env/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>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Akim Juillerat &lt;<a class="reference external" href="mailto:akim.juillerat&#64;camptocamp.com">akim.juillerat&#64;camptocamp.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>