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

This commit is contained in:
Maksym Yankin authored and Iván Todorovich committed 2026-05-20 08:51:00 -03:00
1 parent 48b87cecbe
commit 5d8d3b48b8
2 files changed
+3 -10

No files matched your search

+1 -2
View File
@@ -7,7 +7,6 @@ import re
from collections import namedtuple
from odoo import api, models
from odoo.tools.config import config
from .strtobool import strtobool
@@ -52,7 +51,7 @@ class CloudPlatform(models.AbstractModel):
return configs.get(environment) or self._default_config()
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.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.