mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[UPD] README.rst
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<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>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
: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.
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
@@ -366,28 +366,30 @@ ul.auto-toc {
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:5bcc8207a2e3869b62bd3b365ec10955bb290c99687432f13cd3a92d94a08b62
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<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/15.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-15-0/web-15-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/15.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/15.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-15-0/web-15-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=15.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>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>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
|
||||
<li><a class="reference internal" href="#usage" id="id2">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="#bug-tracker" id="id4">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id5">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id6">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li>
|
||||
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</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="toc-entry-3">Known issues / Roadmap</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="toc-entry-5">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<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
|
||||
the possible attributes for the tag:</p>
|
||||
<table border="1" class="docutils">
|
||||
@@ -461,40 +463,40 @@ 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>Example:</p>
|
||||
<pre class="code xml literal-block">
|
||||
<span class="cp"><?xml version="1.0" encoding="utf-8"?></span>
|
||||
<span class="nt"><odoo></span>
|
||||
<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 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 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 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 class="nt"><timeline</span> <span class="na">date_start=</span><span class="s">"date_assign"</span>
|
||||
<span class="na">date_stop=</span><span class="s">"date_end"</span>
|
||||
<span class="na">string=</span><span class="s">"Tasks"</span>
|
||||
<span class="na">default_group_by=</span><span class="s">"user_id"</span>
|
||||
<span class="na">event_open_popup=</span><span class="s">"true"</span>
|
||||
<span class="na">zoomKey=</span><span class="s">"ctrlKey"</span>
|
||||
<span class="na">colors=</span><span class="s">"#ec7063:user_id == false;#2ecb71:kanban_state=='done';"</span>
|
||||
<span class="na">dependency_arrow=</span><span class="s">"task_dependency_ids"</span><span class="nt">></span>
|
||||
<span class="nt"><field</span> <span class="na">name=</span><span class="s">"user_id"</span><span class="nt">/></span>
|
||||
<span class="nt"><templates></span>
|
||||
<span class="nt"><div</span> <span class="na">t-name=</span><span class="s">"timeline-item"</span><span class="nt">></span>
|
||||
<span class="nt"><div</span> <span class="na">t-esc=</span><span class="s">"record.display_name"</span><span class="nt">/></span>
|
||||
Assigned to:
|
||||
<span class="nt"><span</span> <span class="na">t-esc=</span><span class="s">"record.user_id[1]"</span><span class="nt">/></span>
|
||||
<span class="nt"></div></span>
|
||||
<span class="nt"></templates></span>
|
||||
<span class="nt"></timeline></span>
|
||||
<span class="nt"></field></span>
|
||||
<span class="nt"></record></span>
|
||||
<span class="cp"><?xml version="1.0" encoding="utf-8"?></span><span class="w">
|
||||
</span><span class="nt"><odoo></span><span class="w">
|
||||
</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><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><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><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><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><span class="na">date_stop=</span><span class="s">"date_end"</span><span class="w">
|
||||
</span><span class="na">string=</span><span class="s">"Tasks"</span><span class="w">
|
||||
</span><span class="na">default_group_by=</span><span class="s">"user_id"</span><span class="w">
|
||||
</span><span class="na">event_open_popup=</span><span class="s">"true"</span><span class="w">
|
||||
</span><span class="na">zoomKey=</span><span class="s">"ctrlKey"</span><span class="w">
|
||||
</span><span class="na">colors=</span><span class="s">"#ec7063:user_id == false;#2ecb71:kanban_state=='done';"</span><span class="w">
|
||||
</span><span class="na">dependency_arrow=</span><span class="s">"task_dependency_ids"</span><span class="nt">></span><span class="w">
|
||||
</span><span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"user_id"</span><span class="nt">/></span><span class="w">
|
||||
</span><span class="nt"><templates></span><span class="w">
|
||||
</span><span class="nt"><div</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><span class="nt"><div</span><span class="w"> </span><span class="na">t-esc=</span><span class="s">"record.display_name"</span><span class="nt">/></span><span class="w">
|
||||
</span>Assigned<span class="w"> </span>to:<span class="w">
|
||||
</span><span class="nt"><span</span><span class="w"> </span><span class="na">t-esc=</span><span class="s">"record.user_id[1]"</span><span class="nt">/></span><span class="w">
|
||||
</span><span class="nt"></div></span><span class="w">
|
||||
</span><span class="nt"></templates></span><span class="w">
|
||||
</span><span class="nt"></timeline></span><span class="w">
|
||||
</span><span class="nt"></field></span><span class="w">
|
||||
</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 class="nt"><field</span> <span class="na">name=</span><span class="s">"view_mode"</span><span class="nt">></span>kanban,tree,form,calendar,gantt,timeline,graph<span class="nt"></field></span>
|
||||
<span class="nt"></record></span>
|
||||
<span class="nt"></odoo></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><span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"view_mode"</span><span class="nt">></span>kanban,tree,form,calendar,gantt,timeline,graph<span class="nt"></field></span><span class="w">
|
||||
</span><span class="nt"></record></span><span class="w">
|
||||
</span><span class="nt"></odoo></span>
|
||||
</pre>
|
||||
</div>
|
||||
<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
|
||||
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
|
||||
@@ -521,7 +523,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>
|
||||
</div>
|
||||
<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">
|
||||
<li>Implement a more efficient way of refreshing timeline after a record update;</li>
|
||||
<li>Make <cite>attrs</cite> attribute work;</li>
|
||||
@@ -535,17 +537,17 @@ the value according the group of the dragged item.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<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>.
|
||||
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:%2015.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>
|
||||
</div>
|
||||
<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">
|
||||
<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">
|
||||
<li>ACSONE SA/NV</li>
|
||||
<li>Tecnativa</li>
|
||||
@@ -555,7 +557,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
</ul>
|
||||
</div>
|
||||
<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">
|
||||
<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>
|
||||
@@ -574,14 +576,14 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
</ul>
|
||||
</div>
|
||||
<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>
|
||||
<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
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</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/15.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>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user