Merge PR #2776 into 16.0

Signed-off-by pedrobaeza
pull/2775/head
OCA-git-bot 2024-04-02 14:51:13 +00:00
commit 6ca50ffd8c
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