mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[10.0][IMP] web_timeline improvements:
* Update the vis.js framework to latest stable version (v4.20.1) to add new functionality and save almost 400ko of source code in odoo assets (the vis dev team has isolate the code for timeline widget from the rest of their widgets) * Add the possibility to display events with no duration (instantaneous) as the same time has regular events * Add the possibility to choose between two scroll mode : - zoom in time resolution (default) or - vertical scroll (web browser default behaviour) Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
This commit is contained in:
committed by
CarlosRoca13
parent
eec796a3ae
commit
86bf786981
@@ -20,12 +20,18 @@ the possible attributes for the tag:
|
||||
* date_start (required): it defines the name of the field of type date that
|
||||
contains the start of the event.
|
||||
* date_end (optional): it defines the name of the field of type date that
|
||||
contains the end of the event.
|
||||
* date_delay (optional): it defines the name of the field of type date that
|
||||
contains the end of the event. The date_end can be equal to the attribute
|
||||
date_start to display events has 'point' on the Timeline (instantaneous event)
|
||||
* date_delay (optional): it defines the name of the field of type integer
|
||||
that contain the duration in hours of the event, default = 1
|
||||
contains the end of the event.
|
||||
* default_group_by (required): it defines the name of the field that will be
|
||||
taken as default group by when accessing the view or when no other group by
|
||||
is selected.
|
||||
* zoomKey (optional): Specifies whether the Timeline is only zoomed when an
|
||||
additional key is down. Available values are '' (does not apply), 'altKey',
|
||||
'ctrlKey', or 'metaKey'. Set this option if you want to be able to use the
|
||||
scroll to navigate vertically on views with a lot of events.
|
||||
* event_open_popup (optional): when set to true, it allows to edit the events
|
||||
in a popup. If not (default value), the record is edited changing to form
|
||||
view.
|
||||
@@ -49,6 +55,7 @@ Example:
|
||||
string="Tasks"
|
||||
default_group_by="user_id"
|
||||
event_open_popup="true"
|
||||
zoomKey="ctrlKey"
|
||||
colors="#ec7063:user_id == false;#2ecb71:kanban_state=='done';">
|
||||
</timeline>
|
||||
</field>
|
||||
@@ -93,7 +100,7 @@ new record with the group and start date linked to the area you clicked in.
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/162/8.0
|
||||
:target: https://runbot.odoo-community.org/runbot/162/10.0
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
@@ -125,6 +132,9 @@ Contributors
|
||||
* Adrien Peiffer <adrien.peiffer@acsone.eu>
|
||||
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||
* Leonardo Donelli <donelli@webmonks.it>
|
||||
* Adrien Didenot <adrien.didenot@horanet.com>
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
@@ -135,6 +145,8 @@ Maintainer
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
To contribute to this module, please visit https://odoo-community.org.
|
||||
|
||||
Reference in New Issue
Block a user