From ff8d274a384678cb57866775dfd590973ca32abd Mon Sep 17 00:00:00 2001 From: git_admin Date: Mon, 27 Apr 2026 08:33:00 +0000 Subject: [PATCH] Tower: upload cetmix_tower_yaml 16.0.3.1.0 (via marketplace) --- .../models/cx_tower_jet_waypoint_template.py | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 addons/cetmix_tower_yaml/models/cx_tower_jet_waypoint_template.py diff --git a/addons/cetmix_tower_yaml/models/cx_tower_jet_waypoint_template.py b/addons/cetmix_tower_yaml/models/cx_tower_jet_waypoint_template.py new file mode 100644 index 0000000..f9dfd73 --- /dev/null +++ b/addons/cetmix_tower_yaml/models/cx_tower_jet_waypoint_template.py @@ -0,0 +1,32 @@ +# Copyright (C) 2025 Cetmix OÜ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import models + + +class CxTowerJetWaypointTemplate(models.Model): + _name = "cx.tower.jet.waypoint.template" + _inherit = [ + "cx.tower.jet.waypoint.template", + "cx.tower.yaml.mixin", + ] + + def _get_fields_for_yaml(self): + res = super()._get_fields_for_yaml() + res += [ + "name", + "sequence", + "access_level", + "jet_template_id", + "plan_create_id", + "plan_arrive_id", + "plan_leave_id", + "plan_delete_id", + "note", + ] + return res + + def _get_deferred_m2o_import_fields(self): + """Return m2o waypoint-template fields resolved after import.""" + return { + "jet_template_id": "cx.tower.jet.template", + }