Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 147 |
Technical Name |
server_config_environment |
License | AGPL-3 |
Website | https://www.mint-system.ch/ |
Versions | 16.0 17.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 147 |
Technical Name |
server_config_environment |
License | AGPL-3 |
Website | https://www.mint-system.ch/ |
Versions | 16.0 17.0 |
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

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