3
0
Fork 0

[IMP] web_timeline: Add demo view on cron tasks

This way we can showcase this module without project_timeline.
17.0
Houzéfa Abbasbhay 2024-03-21 13:24:20 +01:00 committed by Carlos Lopez
parent 210f9229bf
commit 97d02aa2ee
5 changed files with 26 additions and 6 deletions

View File

@ -7,7 +7,7 @@ Web timeline
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c98349a3ecce77055de31e35bcfed7720875dda935b668df3538607d27786f16
!! source digest: sha256:c8e10e3103493634358e7e4c5c47260adc4c15c6c555d66c4e05e909f88b118a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@ -81,7 +81,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

View File

@ -4,7 +4,7 @@
{
"name": "Web timeline",
"summary": "Interactive visualization chart to show events in time",
"version": "16.0.1.0.4",
"version": "16.0.1.1.0",
"development_status": "Production/Stable",
"author": "ACSONE SA/NV, "
"Tecnativa, "
@ -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

View File

@ -366,7 +366,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c98349a3ecce77055de31e35bcfed7720875dda935b668df3538607d27786f16
!! source digest: sha256:c8e10e3103493634358e7e4c5c47260adc4c15c6c555d66c4e05e909f88b118a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/16.0/web_timeline"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Define a new view displaying events in an interactive visualization chart.</p>
@ -460,7 +460,8 @@ These are the variables available in template rendering:</p>
<li><tt class="docutils literal">field_utils</tt>: used to format and parse values (see available functions in <tt class="docutils literal">web.field_utils</tt>).</li>
</ul>
<p>You also need to declare the view in an action window of the involved model.</p>
<p>Example:</p>
<p>See <tt class="docutils literal">web_timeline/demo/ir_cron_view.xml</tt> for a very basic timeline view example added onto cron tasks.</p>
<p>More evolved example, from <tt class="docutils literal">project_timeline</tt>:</p>
<pre class="code xml literal-block">
<span class="cp">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span><span class="w">
</span><span class="nt">&lt;odoo&gt;</span><span class="w">