3
0
Fork 0

[IMP] web_timeline: Add demo view on cron tasks

This way we can showcase this module without project_timeline.
16.0
Houzéfa Abbasbhay 2024-03-21 13:24:20 +01:00
parent 1bc582166b
commit 8f4fd737d0
No known key found for this signature in database
GPG Key ID: B30E9425D9198EC1
3 changed files with 18 additions and 1 deletions

View File

@ -17,6 +17,7 @@
"website": "https://github.com/OCA/web",
"depends": ["web"],
"data": [],
"demo": ["demo/ir_cron_view.xml"],
"maintainers": ["tarteo"],
"application": False,
"installable": True,

View File

@ -0,0 +1,14 @@
<?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>
<record id="base.ir_cron_act" model="ir.actions.act_window">
<field name="view_mode">tree,form,calendar,timeline</field>
</record>
</odoo>

View File

@ -38,7 +38,9 @@ These are the variables available in template rendering:
You also need to declare the view in an action window of the involved model.
Example:
See ``web_timeline/demo/ir_cron_view.xml`` for a very basic timeline view example added onto cron tasks.
More evolved example, from ``project_timeline``:
.. code-block:: xml