From e289fb9145d2a4f9e33e424bc9bd11677bf786b0 Mon Sep 17 00:00:00 2001 From: git_admin Date: Mon, 27 Apr 2026 08:14:19 +0000 Subject: [PATCH] Tower: upload cetmix_tower_git 16.0.2.0.4 (via marketplace) --- .../models/cx_tower_plan_line.py | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 addons/cetmix_tower_git/models/cx_tower_plan_line.py diff --git a/addons/cetmix_tower_git/models/cx_tower_plan_line.py b/addons/cetmix_tower_git/models/cx_tower_plan_line.py new file mode 100644 index 0000000..0c676c0 --- /dev/null +++ b/addons/cetmix_tower_git/models/cx_tower_plan_line.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 fields, models + + +class CxTowerPlanLine(models.Model): + """Flight Plan Line""" + + _inherit = "cx.tower.plan.line" + + git_project_id = fields.Many2one( + comodel_name="cx.tower.git.project", + string="Git Project", + help="Select a git project to be linked to the file and server.", + ) + is_make_copy = fields.Boolean( + string="Make a Copy", + help="Create a copy of the Git Project instead of linking " + "the file to the existing one.", + ) + + # ------------------------------ + # YAML mixin methods + # ------------------------------ + def _get_fields_for_yaml(self): + res = super()._get_fields_for_yaml() + res += [ + "git_project_id", + "is_make_copy", + ] + return res