Files
web/web_timeline/models/ir_action.py
Carlos Lopez 43341291dd [MIG] web_timeline: Migration to 17.0
- Convert Moment.js to Luxon.
- Replace Underscore.js with native JavaScript code.
- Migrate legacy views to the new system and add an architecture parser to separate logic.
- added basic test
2024-10-20 12:57:53 -05:00

14 lines
376 B
Python

# Copyright 2024 Tecnativa - Carlos Lopez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
from .ir_ui_view import TIMELINE_VIEW
class ActWindowView(models.Model):
_inherit = "ir.actions.act_window.view"
view_mode = fields.Selection(
selection_add=[TIMELINE_VIEW], ondelete={"timeline": "cascade"}
)