3
0
Fork 0
Commit Graph

1294 Commits (b962cdd1c41cf41b39d51f68002fd1a94f1b9dc2)

Author SHA1 Message Date
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
Houzéfa Abbasbhay 46697f4382 [IMP] web_timeline: Handle inverted date ranges
Inverted dates make no functional sense, but when they do happen, this
change allows displaying them as single points in the timeline (same as
when begin=end).

We currently do have such demo data when installing project_timeline.
2024-10-20 12:31:03 -05:00
Houzéfa Abbasbhay 0e325c7126 [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).
2024-10-20 12:31:03 -05:00
Houzéfa Abbasbhay 97d02aa2ee [IMP] web_timeline: Add demo view on cron tasks
This way we can showcase this module without project_timeline.
2024-10-20 12:31:03 -05:00
Houzéfa Abbasbhay 210f9229bf [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.
2024-10-20 12:31:03 -05:00
Houzéfa Abbasbhay 099f14ccc6 Translated using Weblate (French)
Currently translated at 100.0% (13 of 13 strings)

Translation: web-16.0/web-16.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline/fr/
2024-10-20 12:31:03 -05:00
mymage 9e406f0520 Added translation using Weblate (Italian) 2024-10-20 12:31:03 -05:00
Adriano Prado 47e47c847d Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (13 of 13 strings)

Translation: web-16.0/web-16.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline/pt_BR/
2024-10-20 12:31:03 -05:00
Weblate c0586dc79a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-16.0/web-16.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline/
2024-10-20 12:31:03 -05:00
Henrik Norlin 3aa358db8a [FIX] web_timeline: date_delay = date_stop - date_start 2024-10-20 12:31:03 -05:00
Ivorra78 bcbc461b84 Translated using Weblate (Spanish)
Currently translated at 100.0% (13 of 13 strings)

Translation: web-16.0/web-16.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline/es/
2024-10-20 12:31:02 -05:00
Henrik Norlin 7305e05150 [FIX] web_timeline: Add record - FormViewDialog - resId: null -> false (cannot be null) 2024-10-20 12:31:02 -05:00
Yadier A. De Quesada e3e9b5d4ee [FIX] web_timeline: css and styles not charged when rendering timeline
On library version update a new feature was added at Timeline creation level to
allow modifying the xss. By keeping it active the css classes are not showed

As the view is on backend, has no sense to keep it active. So we deactivate the
feature to allow show the timeline correctly.

TT43238
2024-10-20 12:31:02 -05:00
Bole fdb7a78507 Translated using Weblate (Croatian)
Currently translated at 100.0% (13 of 13 strings)

Translation: web-16.0/web-16.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline/hr/
2024-10-20 12:31:02 -05:00
Ediz Duman 0735af738f Added translation using Weblate (Turkish) 2024-10-20 12:31:02 -05:00
anjeel.haria c6d9bf6987 [MIG] web_timeline: Migration to 16.0
Syntax changes

Syntax changes
2024-10-20 12:31:02 -05:00
jguenat b97fb4aa2c [FIX] web_timeline: updateProm.finally is not a function
Following odoo#102621 an UncaughtPromiseError > TypeError occured each time an update was triggered in timeline view
Fixed by returning super
2024-10-20 12:31:02 -05:00
jguenat d87fe80b79 [FIX] web_timeline: utc and create_completed
fix wrong time used when creating new record

on record creation timeline view was reloaded and all items disappeared
fix by removing unnecessary reload
2024-10-20 12:31:02 -05:00
oca-ci 5d0a475586 [UPD] Update web_timeline.pot 2024-10-20 12:31:02 -05:00
Alexis de Lattre 8def6259bd Update vis-timeline-graph2d lib: 7.3.4 -> 7.7.0 2024-10-19 14:52:37 -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
Luis D. Lafaurie 278df9762a [IMP] web_timeline: allow UNASSIGNED grouping when using M2M field 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
Holger Brunn 3c33c60f06 [FIX] web_timeline: Don't crash when restoring timeline from breadcrumb 2024-10-19 14:52:37 -05:00
Cesar Andres Sanchez 4289bec05c [MIG] web_timeline: Migration to 15.0 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 5a4e036a93 [FIX] web_timeline: Change draw_dependencies 2024-10-19 14:52:37 -05:00
Alexandre Díaz 016152118b [IMP] web_timeline: CSS vis items 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
Thong Nguyen Van d08d7a2490 [IMP] web_timeline: black, isort 2024-10-19 14:52:37 -05:00
HemanginiPatel e8123dd745 [FIX][12.0] web_timeline: Scroll Issue. 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
tarteo 77851f1560 [FIX] web_timeline: Reloading view
[FIX] web_timeline: Reloading view

[FIX] web_timeline: Reloading view
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 15ead6c6e8 [FIX] web_timeline: fix readme - To be squashed with previous one on migration (#1137) 2024-10-19 14:52:37 -05:00
Invitu fb0cb62113 [IMP] Add stack support 2024-10-19 14:52:37 -05:00
tarteo 71fbf1c106 [IMP] Readme: Available attribute list 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 d4121c35d9 [ADD] field_utils to web_timeline
[UPD] Version number

[UPD] README
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 c432c310ee [FIX] Missing GroupClick Functionality 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
Nicolas PIGANEAU 3d7518c665 Fixed web_timeline.css
CSS classes have changed with the updated version of vis.js
2024-10-19 14:52:37 -05:00