Merge PR #2776 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-04-02 14:51:13 +00:00
3 changed files with 18 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
"website": "https://github.com/OCA/web", "website": "https://github.com/OCA/web",
"depends": ["web"], "depends": ["web"],
"data": [], "data": [],
"demo": ["demo/ir_cron_view.xml"],
"maintainers": ["tarteo"], "maintainers": ["tarteo"],
"application": False, "application": False,
"installable": True, "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. 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 .. code-block:: xml