Tower: upload cetmix_tower_yaml 18.0.2.0.0 (was 18.0.2.0.0, via marketplace)

This commit is contained in:
2026-05-03 18:55:03 +00:00
parent bf36bd383a
commit ed5f0d6535
80 changed files with 9798 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class CxTowerServer(models.Model):
_name = "cx.tower.server"
_inherit = [
"cx.tower.server",
"cx.tower.yaml.mixin",
]
def _get_fields_for_yaml(self):
res = super()._get_fields_for_yaml()
res += [
"name",
"ip_v4_address",
"ip_v6_address",
"skip_host_key",
"color",
"os_id",
"tag_ids",
"url",
"note",
"ssh_port",
"ssh_username",
"ssh_key_id",
"ssh_auth_mode",
"use_sudo",
"variable_value_ids",
"secret_ids",
"server_log_ids",
"shortcut_ids",
"scheduled_task_ids",
"plan_delete_id",
"file_ids",
"command_ids",
"plan_ids",
]
return res
def _get_force_x2m_resolve_models(self):
res = super()._get_force_x2m_resolve_models()
# This is useful to avoid duplicating existing plans
res += [
"cx.tower.shortcut",
"cx.tower.scheduled.task",
"cx.tower.command",
"cx.tower.plan",
]
return res