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

This commit is contained in:
Maksym Yankin
2026-05-20 08:51:16 -03:00
committed by Iván Todorovich
co-authored by Iván Todorovich
parent 9d25a5dc56
commit 08ef2f8025
3 changed files with 2 additions and 10 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import os
import re
from odoo import api, models
from odoo.tools.config import config
from .strtobool import strtobool
@@ -22,7 +21,7 @@ class CloudPlatform(models.AbstractModel):
_description = "cloud.platform"
def _get_running_env(self):
environment_name = config["running_env"]
environment_name = os.environ.get("RUNNING_ENV")
if environment_name.startswith("labs"):
# We allow to have environments such as 'labs-logistics'
# or 'labs-finance', in order to have the matching ribbon.