Commit Graph

15 Commits (614a3b133bef16f18094af5280f19a8c86ad895a)

Author SHA1 Message Date
Carlos Lopez d9e66b6132 [IMP] web_timeline: pre-commit auto fixes 2025-04-01 11:46:28 +05:30
Houzéfa Abbasbhay 8de0b1776b [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.
2025-04-01 11:46:28 +05:30
Houzéfa Abbasbhay 2217472893 [IMP] web_timeline: Overflow text, add hover colors
When an item label does not fit in its date-range box, overflow
according to
https://visjs.github.io/vis-timeline/examples/timeline/items/rangeOverflowItem.html

Previous CSS code was already trying to do that, but was selecting
`.vis-item.vis-item-content` instead of `.vis-item .vis-item-content`.

Displaying overflow text brings up layout issues solved by removing the
forced-100% width instruction.

This change also adds highlight when hovering a box, which is useful on
text that has overflown (as it has no borders).
2025-04-01 11:46:28 +05:30
Houzéfa Abbasbhay 0e11828513 [IMP] web_timeline: Add demo view on cron tasks
This way we can showcase this module without project_timeline.
2025-04-01 11:46:28 +05:30
Houzéfa Abbasbhay 0572c797d9 [FIX] web_timeline: Wrap fields_get arg into a list
By contract the first argument of the `fields_get` method is supposed to
be a list. Before this fix, `web_timeline` would call `fields_get` with
a string instead of a list.

Fortunately in case only 1 field is being grouped, this worked as Odoo
does an `x in y` comparison in its `fields_get` implementation, which
does pass in a simple `"project_id" in "project_id"` case.

But that call remains invalid and can break when `fields_get` has been
tweaked by other modules.
2025-04-01 11:46:28 +05:30
anjeel.haria 42807dd5f8 [MIG] web_timeline: Migration to 16.0
Syntax changes

Syntax changes
2025-04-01 11:46:28 +05:30
CarlosRoca13 ee1e65db87 [FIX] web_timeline: Allow groupby m2m fields 2025-04-01 11:46:28 +05:30
Cesar Andres Sanchez 7a9241cafa [MIG] web_timeline: Migration to 15.0 2025-04-01 11:46:28 +05:30
Murtaza Mithaiwala d441894bbd [14.0][MIG] Migrated web_timeline. 2025-04-01 11:46:28 +05:30
Alexandre Díaz 86df694ef7 [MIG] web_timeline: Finish migration to 13.0 2025-04-01 11:46:28 +05:30
Thong Nguyen Van f07afdc0d9 [MIG] web_timeline: Migration to 13.0 2025-04-01 11:46:28 +05:30
Cyril VINH-TUNG 4deef7a977 [web_timeline][IMP] Add margin support in web_timeline (#1135) 2025-04-01 11:46:28 +05:30
invitu e7f9bc5f94 [FIX] web_timeline: fix readme - To be squashed with previous one on migration (#1137) 2025-04-01 11:46:28 +05:30
tarteo 0f0aefd040 [IMP] Readme: Available attribute list 2025-04-01 11:46:28 +05:30
tarteo 4d6acd98b9 [MIG] web_timeline: Migration to 12.0 2025-04-01 11:46:28 +05:30