Skip to Content
Menu
v 16.0 Third Party 15
Download for v 16.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 147
Technical Name server_config_environment
LicenseAGPL-3
Websitehttps://www.mint-system.ch/
Versions 16.0 17.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 147
Technical Name server_config_environment
LicenseAGPL-3
Websitehttps://www.mint-system.ch/
Versions 16.0 17.0
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.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.