[REF] cloud_platform: server_environment should not be a required dependency

This commit is contained in:
Maksym Yankin
2026-03-31 09:07:45 +03:00
committed by Iván Todorovich
parent 9d25a5dc56
commit 08ef2f8025
3 changed files with 2 additions and 10 deletions
-1
View File
@@ -2,7 +2,6 @@ exclude: |
(?x) (?x)
# NOT INSTALLABLE ADDONS # NOT INSTALLABLE ADDONS
^base_fileurl_field/| ^base_fileurl_field/|
^cloud_platform/|
^monitoring_log_requests/| ^monitoring_log_requests/|
^monitoring_prometheus/| ^monitoring_prometheus/|
^monitoring_statsd/| ^monitoring_statsd/|
+1 -7
View File
@@ -9,13 +9,7 @@
"author": "Camptocamp,Odoo Community Association (OCA)", "author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",
"category": "Extra Tools", "category": "Extra Tools",
"depends": [ "depends": ["session_redis", "monitoring_status", "logging_json"],
"session_redis",
"monitoring_status",
"logging_json",
"server_environment", # OCA/server-tools
],
"website": "https://github.com/camptocamp/odoo-cloud-platform", "website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"installable": False, "installable": False,
} }
+1 -2
View File
@@ -6,7 +6,6 @@ import os
import re import re
from odoo import api, models from odoo import api, models
from odoo.tools.config import config
from .strtobool import strtobool from .strtobool import strtobool
@@ -22,7 +21,7 @@ class CloudPlatform(models.AbstractModel):
_description = "cloud.platform" _description = "cloud.platform"
def _get_running_env(self): def _get_running_env(self):
environment_name = config["running_env"] environment_name = os.environ.get("RUNNING_ENV")
if environment_name.startswith("labs"): if environment_name.startswith("labs"):
# We allow to have environments such as 'labs-logistics' # We allow to have environments such as 'labs-logistics'
# or 'labs-finance', in order to have the matching ribbon. # or 'labs-finance', in order to have the matching ribbon.