mirror of https://github.com/OCA/web.git
[FIX] web_timeline: date_delay = date_stop - date_start
parent
bcbc461b84
commit
3aa358db8a
|
@ -2,10 +2,13 @@
|
||||||
Web timeline
|
Web timeline
|
||||||
============
|
============
|
||||||
|
|
||||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
..
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
!! source digest: sha256:83336483b07a21cb0d427e4961bc70735ff1f8d7200f4faf488c3b509e683d6c
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
||||||
:target: https://odoo-community.org/page/development-status
|
:target: https://odoo-community.org/page/development-status
|
||||||
|
@ -19,9 +22,9 @@ Web timeline
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||||
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline
|
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline
|
||||||
:alt: Translate me on Weblate
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||||
:target: https://runbot.odoo-community.org/runbot/162/16.0
|
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runboat
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
|
|
||||||
|
@ -189,7 +192,7 @@ Bug Tracker
|
||||||
|
|
||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
In case of trouble, please check there if your issue has already been reported.
|
||||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||||
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_timeline%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_timeline%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||||
|
|
||||||
Do not contact contributors directly about support or help with technical issues.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
"name": "Web timeline",
|
"name": "Web timeline",
|
||||||
"summary": "Interactive visualization chart to show events in time",
|
"summary": "Interactive visualization chart to show events in time",
|
||||||
"version": "16.0.1.0.2",
|
"version": "16.0.1.0.3",
|
||||||
"development_status": "Production/Stable",
|
"development_status": "Production/Stable",
|
||||||
"author": "ACSONE SA/NV, "
|
"author": "ACSONE SA/NV, "
|
||||||
"Tecnativa, "
|
"Tecnativa, "
|
||||||
|
|
|
@ -3,18 +3,18 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
||||||
<title>Web timeline</title>
|
<title>Web timeline</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
/*
|
/*
|
||||||
:Author: David Goodger (goodger@python.org)
|
:Author: David Goodger (goodger@python.org)
|
||||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
|
||||||
:Copyright: This stylesheet has been placed in the public domain.
|
:Copyright: This stylesheet has been placed in the public domain.
|
||||||
|
|
||||||
Default cascading style sheet for the HTML output of Docutils.
|
Default cascading style sheet for the HTML output of Docutils.
|
||||||
|
|
||||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
||||||
customize this style sheet.
|
customize this style sheet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -366,28 +366,30 @@ ul.auto-toc {
|
||||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
!! source digest: sha256:83336483b07a21cb0d427e4961bc70735ff1f8d7200f4faf488c3b509e683d6c
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||||
<p><a class="reference external" 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" 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" 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" 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" href="https://runbot.odoo-community.org/runbot/162/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
<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&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>
|
<p>Define a new view displaying events in an interactive visualization chart.</p>
|
||||||
<p>The widget is based on the external library
|
<p>The widget is based on the external library
|
||||||
<a class="reference external" href="https://visjs.github.io/vis-timeline/examples/timeline">https://visjs.github.io/vis-timeline/examples/timeline</a></p>
|
<a class="reference external" href="https://visjs.github.io/vis-timeline/examples/timeline">https://visjs.github.io/vis-timeline/examples/timeline</a></p>
|
||||||
<p><strong>Table of contents</strong></p>
|
<p><strong>Table of contents</strong></p>
|
||||||
<div class="contents local topic" id="contents">
|
<div class="contents local topic" id="contents">
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
|
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a></li>
|
||||||
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li>
|
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
|
||||||
<li><a class="reference internal" href="#known-issues-roadmap" id="id3">Known issues / Roadmap</a></li>
|
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-3">Known issues / Roadmap</a></li>
|
||||||
<li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li>
|
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-4">Bug Tracker</a></li>
|
||||||
<li><a class="reference internal" href="#credits" id="id5">Credits</a><ul>
|
<li><a class="reference internal" href="#credits" id="toc-entry-5">Credits</a><ul>
|
||||||
<li><a class="reference internal" href="#authors" id="id6">Authors</a></li>
|
<li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
|
||||||
<li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li>
|
<li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
|
||||||
<li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li>
|
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="configuration">
|
<div class="section" id="configuration">
|
||||||
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
|
||||||
<p>You need to define a view with the tag <timeline> as base element. These are
|
<p>You need to define a view with the tag <timeline> as base element. These are
|
||||||
the possible attributes for the tag:</p>
|
the possible attributes for the tag:</p>
|
||||||
<table border="1" class="docutils">
|
<table border="1" class="docutils">
|
||||||
|
@ -461,65 +463,65 @@ These are the variables available in template rendering:</p>
|
||||||
<p>You also need to declare the view in an action window of the involved model.</p>
|
<p>You also need to declare the view in an action window of the involved model.</p>
|
||||||
<p>Example:</p>
|
<p>Example:</p>
|
||||||
<pre class="code xml literal-block">
|
<pre class="code xml literal-block">
|
||||||
<span class="cp"><?xml version="1.0" encoding="utf-8"?></span>
|
<span class="cp"><?xml version="1.0" encoding="utf-8"?></span><span class="w">
|
||||||
<span class="nt"><odoo></span>
|
</span><span class="nt"><odoo></span><span class="w">
|
||||||
<span class="nt"><record</span> <span class="na">id=</span><span class="s">"view_task_timeline"</span> <span class="na">model=</span><span class="s">"ir.ui.view"</span><span class="nt">></span>
|
</span><span class="nt"><record</span><span class="w"> </span><span class="na">id=</span><span class="s">"view_task_timeline"</span><span class="w"> </span><span class="na">model=</span><span class="s">"ir.ui.view"</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><field</span> <span class="na">name=</span><span class="s">"model"</span><span class="nt">></span>project.task<span class="nt"></field></span>
|
</span><span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"model"</span><span class="nt">></span>project.task<span class="nt"></field></span><span class="w">
|
||||||
<span class="nt"><field</span> <span class="na">name=</span><span class="s">"type"</span><span class="nt">></span>timeline<span class="nt"></field></span>
|
</span><span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"type"</span><span class="nt">></span>timeline<span class="nt"></field></span><span class="w">
|
||||||
<span class="nt"><field</span> <span class="na">name=</span><span class="s">"arch"</span> <span class="na">type=</span><span class="s">"xml"</span><span class="nt">></span>
|
</span><span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"arch"</span><span class="w"> </span><span class="na">type=</span><span class="s">"xml"</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><timeline</span> <span class="na">date_start=</span><span class="s">"date_assign"</span>
|
</span><span class="nt"><timeline</span><span class="w"> </span><span class="na">date_start=</span><span class="s">"date_assign"</span><span class="w">
|
||||||
<span class="na">date_stop=</span><span class="s">"date_end"</span>
|
</span><span class="na">date_stop=</span><span class="s">"date_end"</span><span class="w">
|
||||||
<span class="na">string=</span><span class="s">"Tasks"</span>
|
</span><span class="na">string=</span><span class="s">"Tasks"</span><span class="w">
|
||||||
<span class="na">default_group_by=</span><span class="s">"project_id"</span>
|
</span><span class="na">default_group_by=</span><span class="s">"project_id"</span><span class="w">
|
||||||
<span class="na">event_open_popup=</span><span class="s">"true"</span>
|
</span><span class="na">event_open_popup=</span><span class="s">"true"</span><span class="w">
|
||||||
<span class="na">colors=</span><span class="s">"white: user_ids == []; #2ecb71: kanban_state == 'done'; #ec7063: kanban_state == 'blocked'"</span>
|
</span><span class="na">colors=</span><span class="s">"white: user_ids == []; #2ecb71: kanban_state == 'done'; #ec7063: kanban_state == 'blocked'"</span><span class="w">
|
||||||
<span class="na">dependency_arrow=</span><span class="s">"depend_on_ids"</span>
|
</span><span class="na">dependency_arrow=</span><span class="s">"depend_on_ids"</span><span class="w">
|
||||||
<span class="nt">></span>
|
</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><field</span> <span class="na">name=</span><span class="s">"user_ids"</span> <span class="nt">/></span>
|
</span><span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"user_ids"</span><span class="w"> </span><span class="nt">/></span><span class="w">
|
||||||
<span class="nt"><field</span> <span class="na">name=</span><span class="s">"planned_hours"</span> <span class="nt">/></span>
|
</span><span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"planned_hours"</span><span class="w"> </span><span class="nt">/></span><span class="w">
|
||||||
<span class="nt"><templates></span>
|
</span><span class="nt"><templates></span><span class="w">
|
||||||
<span class="nt"><t</span> <span class="na">t-name=</span><span class="s">"timeline-item"</span><span class="nt">></span>
|
</span><span class="nt"><t</span><span class="w"> </span><span class="na">t-name=</span><span class="s">"timeline-item"</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"o_project_timeline_item"</span><span class="nt">></span>
|
</span><span class="nt"><div</span><span class="w"> </span><span class="na">class=</span><span class="s">"o_project_timeline_item"</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><t</span> <span class="na">t-foreach=</span><span class="s">"record.user_ids"</span> <span class="na">t-as=</span><span class="s">"user"</span><span class="nt">></span>
|
</span><span class="nt"><t</span><span class="w"> </span><span class="na">t-foreach=</span><span class="s">"record.user_ids"</span><span class="w"> </span><span class="na">t-as=</span><span class="s">"user"</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><img</span>
|
</span><span class="nt"><img</span><span class="w">
|
||||||
<span class="na">t-if=</span><span class="s">"record.user_ids"</span>
|
</span><span class="na">t-if=</span><span class="s">"record.user_ids"</span><span class="w">
|
||||||
<span class="na">t-attf-src=</span><span class="s">"/web/image/res.users/#{user}/image_128/16x16"</span>
|
</span><span class="na">t-attf-src=</span><span class="s">"/web/image/res.users/#{user}/image_128/16x16"</span><span class="w">
|
||||||
<span class="na">t-att-title=</span><span class="s">"record.user"</span>
|
</span><span class="na">t-att-title=</span><span class="s">"record.user"</span><span class="w">
|
||||||
<span class="na">width=</span><span class="s">"16"</span>
|
</span><span class="na">width=</span><span class="s">"16"</span><span class="w">
|
||||||
<span class="na">height=</span><span class="s">"16"</span>
|
</span><span class="na">height=</span><span class="s">"16"</span><span class="w">
|
||||||
<span class="na">class=</span><span class="s">"mr8"</span>
|
</span><span class="na">class=</span><span class="s">"mr8"</span><span class="w">
|
||||||
<span class="na">alt=</span><span class="s">"User"</span>
|
</span><span class="na">alt=</span><span class="s">"User"</span><span class="w">
|
||||||
<span class="nt">/></span>
|
</span><span class="nt">/></span><span class="w">
|
||||||
<span class="nt"></t></span>
|
</span><span class="nt"></t></span><span class="w">
|
||||||
<span class="nt"><span</span> <span class="na">name=</span><span class="s">"display_name"</span><span class="nt">></span>
|
</span><span class="nt"><span</span><span class="w"> </span><span class="na">name=</span><span class="s">"display_name"</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><t</span> <span class="na">t-esc=</span><span class="s">"record.display_name"</span> <span class="nt">/></span>
|
</span><span class="nt"><t</span><span class="w"> </span><span class="na">t-esc=</span><span class="s">"record.display_name"</span><span class="w"> </span><span class="nt">/></span><span class="w">
|
||||||
<span class="nt"></span></span>
|
</span><span class="nt"></span></span><span class="w">
|
||||||
<span class="nt"><small</span>
|
</span><span class="nt"><small</span><span class="w">
|
||||||
<span class="na">name=</span><span class="s">"planned_hours"</span>
|
</span><span class="na">name=</span><span class="s">"planned_hours"</span><span class="w">
|
||||||
<span class="na">class=</span><span class="s">"text-info ml4"</span>
|
</span><span class="na">class=</span><span class="s">"text-info ml4"</span><span class="w">
|
||||||
<span class="na">t-if=</span><span class="s">"record.planned_hours"</span>
|
</span><span class="na">t-if=</span><span class="s">"record.planned_hours"</span><span class="w">
|
||||||
<span class="nt">></span>
|
</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><t</span>
|
</span><span class="nt"><t</span><span class="w">
|
||||||
<span class="na">t-esc=</span><span class="s">"field_utils.format.float_time(record.planned_hours)"</span>
|
</span><span class="na">t-esc=</span><span class="s">"field_utils.format.float_time(record.planned_hours)"</span><span class="w">
|
||||||
<span class="nt">/></span>
|
</span><span class="nt">/></span><span class="w">
|
||||||
<span class="nt"></small></span>
|
</span><span class="nt"></small></span><span class="w">
|
||||||
<span class="nt"></div></span>
|
</span><span class="nt"></div></span><span class="w">
|
||||||
<span class="nt"></t></span>
|
</span><span class="nt"></t></span><span class="w">
|
||||||
<span class="nt"></templates></span>
|
</span><span class="nt"></templates></span><span class="w">
|
||||||
<span class="nt"></timeline></span>
|
</span><span class="nt"></timeline></span><span class="w">
|
||||||
<span class="nt"></field></span>
|
</span><span class="nt"></field></span><span class="w">
|
||||||
<span class="nt"></record></span>
|
</span><span class="nt"></record></span><span class="w">
|
||||||
|
|
||||||
<span class="nt"><record</span> <span class="na">id=</span><span class="s">"project.action_view_task"</span> <span class="na">model=</span><span class="s">"ir.actions.act_window"</span><span class="nt">></span>
|
</span><span class="nt"><record</span><span class="w"> </span><span class="na">id=</span><span class="s">"project.action_view_task"</span><span class="w"> </span><span class="na">model=</span><span class="s">"ir.actions.act_window"</span><span class="nt">></span><span class="w">
|
||||||
<span class="nt"><field</span>
|
</span><span class="nt"><field</span><span class="w">
|
||||||
<span class="na">name=</span><span class="s">"view_mode"</span>
|
</span><span class="na">name=</span><span class="s">"view_mode"</span><span class="w">
|
||||||
<span class="nt">></span>kanban,tree,form,calendar,timeline,pivot,graph,activity<span class="nt"></field></span>
|
</span><span class="nt">></span>kanban,tree,form,calendar,timeline,pivot,graph,activity<span class="nt"></field></span><span class="w">
|
||||||
<span class="nt"></record></span>
|
</span><span class="nt"></record></span><span class="w">
|
||||||
<span class="nt"></odoo></span>
|
</span><span class="nt"></odoo></span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="usage">
|
<div class="section" id="usage">
|
||||||
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
|
||||||
<p>For accessing the timeline view, you have to click on the button with the clock
|
<p>For accessing the timeline view, you have to click on the button with the clock
|
||||||
icon in the view switcher. The first time you access to it, the timeline window
|
icon in the view switcher. The first time you access to it, the timeline window
|
||||||
is zoomed to fit all the current elements, the same as when you perform a
|
is zoomed to fit all the current elements, the same as when you perform a
|
||||||
|
@ -546,7 +548,7 @@ By holding the Ctrl key and dragging left to right, you can create a new record
|
||||||
with the dragged start and end date.</p>
|
with the dragged start and end date.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="known-issues-roadmap">
|
<div class="section" id="known-issues-roadmap">
|
||||||
<h1><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>Implement a more efficient way of refreshing timeline after a record update;</li>
|
<li>Implement a more efficient way of refreshing timeline after a record update;</li>
|
||||||
<li>Make <cite>attrs</cite> attribute work;</li>
|
<li>Make <cite>attrs</cite> attribute work;</li>
|
||||||
|
@ -560,17 +562,17 @@ the value according the group of the dragged item.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="bug-tracker">
|
<div class="section" id="bug-tracker">
|
||||||
<h1><a class="toc-backref" href="#id4">Bug Tracker</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
|
||||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
In case of trouble, please check there if your issue has already been reported.
|
||||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||||
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_timeline%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_timeline%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<div class="section" id="credits">
|
||||||
<h1><a class="toc-backref" href="#id5">Credits</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-5">Credits</a></h1>
|
||||||
<div class="section" id="authors">
|
<div class="section" id="authors">
|
||||||
<h2><a class="toc-backref" href="#id6">Authors</a></h2>
|
<h2><a class="toc-backref" href="#toc-entry-6">Authors</a></h2>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>ACSONE SA/NV</li>
|
<li>ACSONE SA/NV</li>
|
||||||
<li>Tecnativa</li>
|
<li>Tecnativa</li>
|
||||||
|
@ -580,7 +582,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="contributors">
|
<div class="section" id="contributors">
|
||||||
<h2><a class="toc-backref" href="#id7">Contributors</a></h2>
|
<h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>Laurent Mignon <<a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a>></li>
|
<li>Laurent Mignon <<a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a>></li>
|
||||||
<li>Adrien Peiffer <<a class="reference external" href="mailto:adrien.peiffer@acsone.eu">adrien.peiffer@acsone.eu</a>></li>
|
<li>Adrien Peiffer <<a class="reference external" href="mailto:adrien.peiffer@acsone.eu">adrien.peiffer@acsone.eu</a>></li>
|
||||||
|
@ -607,14 +609,14 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="maintainers">
|
<div class="section" id="maintainers">
|
||||||
<h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
|
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
|
||||||
<p>This module is maintained by the OCA.</p>
|
<p>This module is maintained by the OCA.</p>
|
||||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.</p>
|
promote its widespread use.</p>
|
||||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||||
<p><a class="reference external" href="https://github.com/tarteo"><img alt="tarteo" src="https://github.com/tarteo.png?size=40px" /></a></p>
|
<p><a class="reference external image-reference" href="https://github.com/tarteo"><img alt="tarteo" src="https://github.com/tarteo.png?size=40px" /></a></p>
|
||||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/16.0/web_timeline">OCA/web</a> project on GitHub.</p>
|
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/16.0/web_timeline">OCA/web</a> project on GitHub.</p>
|
||||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -282,6 +282,10 @@ export default AbstractController.extend({
|
||||||
.utc()
|
.utc()
|
||||||
.format("YYYY-MM-DD HH:mm:ss");
|
.format("YYYY-MM-DD HH:mm:ss");
|
||||||
}
|
}
|
||||||
|
if (this.date_delay && this.date_start && this.date_stop && item.end) {
|
||||||
|
default_context["default_".concat(this.date_delay)] =
|
||||||
|
(moment(item.end) - moment(item.start)) / 3600000;
|
||||||
|
}
|
||||||
if (item.group > 0) {
|
if (item.group > 0) {
|
||||||
default_context["default_".concat(this.renderer.last_group_bys[0])] =
|
default_context["default_".concat(this.renderer.last_group_bys[0])] =
|
||||||
item.group;
|
item.group;
|
||||||
|
|
Loading…
Reference in New Issue