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

This commit is contained in:
Maksym Yankin
2026-05-20 08:51:12 -03:00
committed by Iván Todorovich
co-authored by Iván Todorovich
parent 92b965e338
commit d8c5517407
2 changed files with 3 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.