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,42 @@
# Copyright (C) 2025 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class CxTowerScheduledTask(models.Model):
_name = "cx.tower.scheduled.task"
_inherit = ["cx.tower.scheduled.task", "cx.tower.yaml.mixin"]
def _get_fields_for_yaml(self):
res = super()._get_fields_for_yaml()
res += [
"name",
"sequence",
"action",
"command_id",
"plan_id",
"interval_number",
"interval_type",
"next_call",
"last_call",
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday",
"custom_variable_value_ids",
]
return res
def _get_deferred_x2m_import_fields(self):
"""Return scheduled-task child records resolved after import."""
return {
"custom_variable_value_ids": {
"child_model": "cx.tower.scheduled.task.cv",
"deferred_field": "variable_value_id",
"target_model": "cx.tower.variable.value",
"skip_empty": True,
}
}