[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:16 -03:00
1 parent 9d25a5dc56
commit 08ef2f8025
3 files changed
+2 -10

No files matched your search

+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.
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.