Commit Graph

21 Commits

Author SHA1 Message Date
Houzéfa Abbasbhay
719cf33707 [IMP] web_timeline: Follow create/edit/delete attrs
In addition to security rights (was already implemented), now follow
`create="0"` / `edit="0"` / `delete="0"` attributes one can set onto the
`timeline` tag, same as in other Odoo views.
2024-10-20 12:32:48 -05:00
Houzéfa Abbasbhay
0d816893a7 [FIX] web_timeline: Redraw issues with initial mode
This commit fixes redraw issues when setting a `mode` attribute in the
`timeline` view tag.

This mode specifies a default scale one would want to set; same as when
clicking on Day/Week/Month buttons at the top of the view.

Initial rendering had issues here because data was loaded too soon,
before the timeline component was rendered/ready. The fix is to load
data into the component only after initial redraw event, called
`changed` (see <https://visjs.github.io/vis-timeline/docs/timeline/#Events>).

There was old code attempting to call `on_scale_xxx_clicked` methods at
load time to simulate clicks on these Day/Week/Month buttons, but these
methods have been renamed so this code is no longer working.

This commit also removes the `current_window` instance variable, not
needed and actually confusing as the timeline component already
maintains its own start/end information (which we can query with
`timeline.getWindow()`).
2024-10-20 12:32:48 -05:00
Houzéfa Abbasbhay
c8490eb2f3 [IMP] web_timeline: Align to top instead of bottom
This avoids somewhat ugly very large "Unassigned" first row.
2024-10-20 12:32:48 -05:00
anjeel.haria
c6d9bf6987 [MIG] web_timeline: Migration to 16.0
Syntax changes

Syntax changes
2024-10-20 12:31:02 -05:00
Alexis de Lattre
9402bfb45b [FIX] web_timeline: order group_by field
Fix bug #2266: before this fix, the lines of the timeline view were always sorted by alphabetical order, ignoring the native order of the model on which the group_by field points to.

Fix duplicate entries in the 'fields' argument when the 'colors' parameters uses the same field in multiple conditions.
2024-10-19 14:52:37 -05:00
CarlosRoca13
4f1301aef8 [FIX] web_timeline: Allow groupby m2m fields 2024-10-19 14:52:37 -05:00
Murtaza Mithaiwala
19ee4cc22c [14.0][MIG] Migrated web_timeline. 2024-10-19 14:52:37 -05:00
Murtaza Mithaiwala
dbf94246a8 [FIX] Travis 2024-10-19 14:52:37 -05:00
Alexandre Díaz
3a759ebf14 [FIX] web_timeline: Change vis-timeline library import 2024-10-19 14:52:37 -05:00
Alexandre Díaz
6f8b908597 [MIG] web_timeline: Finish migration to 13.0 2024-10-19 14:52:37 -05:00
Thong Nguyen Van
b0eb269e41 [MIG] web_timeline: Migration to 13.0 2024-10-19 14:52:37 -05:00
denislour
e7dd585500 [12.0][web_timeline] Fix bug from group_order: locale instead locate. 2024-10-19 14:52:37 -05:00
denislour
5ba6b6aac7 [12.0][FIX]web_timeline: fix group orders 2024-10-19 14:52:37 -05:00
Cyril VINH-TUNG
c7c7a24baa [web_timeline][IMP] Add margin support in web_timeline (#1135) 2024-10-19 14:52:37 -05:00
Invitu
fb0cb62113 [IMP] Add stack support 2024-10-19 14:52:37 -05:00
tarteo
8d6b546bab [MIG] web_timeline: Migration to 12.0 2024-10-19 14:52:37 -05:00
Dennis Sluijk
82af9cc159 [ADD] Enable multiselect
[IMP] Prevent flickering

[IMP] Fixed headers

[ADD] Create new record by date range selection

Remove roadmap item from readme

[FIX] minimal height
2024-10-19 14:52:37 -05:00
tarteo
fdca1f5138 [ADD] web_timeline: New dependency_arrow attribute
Update README.rst

[FIX] Remove console.log

[ADD] Make timeline.fit optional

[FIX] Use stringified points

[IMP] Reversed the arrow head and fixed lint issues

[IMP] Use options parameter for line color and width

[FIX] Version number

[IMP] Minor improvements
2024-10-19 14:52:37 -05:00
tarteo
631111bd4d [IMP] web_timeline: Templates implementation like kanban
[IMP] web_timeline: Templates implementation like kanban

[ADD] Check if template exists

Update README.rst
2024-10-19 14:52:37 -05:00
Dennis Sluijk
b628880122 [FIX] web_timeline: Make colors attribute optional (#969) 2024-10-19 14:52:37 -05:00
Martin Nicolas Cuesta
97b30d646f [MIG] web_timeline module from v10 to v11
* Update Version in Manifest
* Remove enconding in .py files
* Rewrite the view definition according to version 11
2024-10-19 14:52:37 -05:00