mirror of https://github.com/OCA/web.git
commit
6ca50ffd8c
|
@ -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,
|
||||
|
|
|
@ -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>
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue