Skip to main content

Define environments for server configurations.

Project description

License: AGPL-3

Server Config Environment

Define environments for server configurations.

For a detailed documentation have a look at https://www.odoo-wiki.org/server-config-environment.html

Configuration

  • Connect model to the server config environment:

class GitRepoBranch(models.Model):
    _name = "git.repo.branch"
    _description = "Git Repo Branch"

    field environment_id = Many2one("server.config.environment")
  • Define the server environment in the Odoo config:

[options]
environment = development
  • Use the get active environment to filter records:

environment_id = self.env['server.config.environment'].get_active_environment()
branch = self.search(['environment_id', '=', environment_id.id)

Maintainer

https://raw.githubusercontent.com/Mint-System/Wiki/master/assets/mint-system-logo.png

This module is maintained by Mint System GmbH.

For support and more information, please visit our Website.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_server_config_environment-16.0.1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_server_config_environment-16.0.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b7e0c83a40bcee5b240479679f929972da58fdfa0f11de5b2f3214b6050fe03
MD5 5302c14fbe3ec86cbdbfb97ec524a52b
BLAKE2b-256 901fb5f1ff5d90e3e9f5f1ed18576cbbb779502b817eb4a48f5b464229c0b54f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page