Files
web/web_timeline/demo/ir_cron_view.xml
Houzéfa Abbasbhay 5e633bc7c1 [IMP] web_timeline: Safer demo view action override
Append our view_mode this way to avoid overwriting changes done by other
modules.
2025-01-30 10:14:16 +01:00

20 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>