oca-web/odoo-bringout-oca-web-web_timeline/web_timeline/demo/ir_cron_view.xml
Ernad Husremovic 53fddf87c8 Add oca-web submodule with 68 web modules
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:27:15 +02:00

19 lines
824 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Add demo timeline view on crons so we can showcase this module without project_timeline. -->
<record id="ir_cron_timeline" model="ir.ui.view">
<field name="model">ir.cron</field>
<field name="type">timeline</field>
<field name="arch" type="xml">
<timeline date_start="nextcall" default_group_by="model_id" />
</field>
</record>
<!-- Append our view_mode this way to avoid overwriting changes done by other modules. -->
<function model="ir.actions.act_window" name="write">
<value eval="[ref('base.ir_cron_act')]" />
<value
model="ir.actions.act_window"
eval="{'view_mode': obj().env.ref('base.ir_cron_act').view_mode + ',timeline'}"
/>
</function>
</odoo>