Commit Graph

87 Commits

Author SHA1 Message Date
OCA-git-bot
5c3bbc9869 [BOT] post-merge updates 2025-01-31 08:37:30 +00:00
Houzéfa Abbasbhay
5e633bc7c1 [IMP] web_timeline: Safer demo view action override
Append our view_mode this way to avoid overwriting changes done by other
modules.
2025-01-30 10:14:16 +01:00
OCA-git-bot
aa32501978 [BOT] post-merge updates 2024-10-15 18:41:27 +00:00
Bastian Guenther
486f6133d8 [16.0][FIX] web_timeline: Fixed error message when saving and closing form view in timeline #2619 2024-10-15 19:46:01 +02:00
OCA-git-bot
b3d68c753e [BOT] post-merge updates 2024-09-27 13:37:19 +00:00
Houzéfa Abbasbhay
907aa64876 [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-09-27 10:38:29 +02:00
OCA-git-bot
8a2da2649b [BOT] post-merge updates 2024-09-26 17:52:00 +00:00
OCA-git-bot
5ca3a558f9 Merge PR #2778 into 16.0
Signed-off-by pedrobaeza
2024-09-26 17:48:20 +00:00
OCA-git-bot
935b007451 [BOT] post-merge updates 2024-09-26 16:32:06 +00:00
OCA-git-bot
a3f42ba097 Merge PR #2774 into 16.0
Signed-off-by pedrobaeza
2024-09-26 16:28:22 +00:00
Houzéfa Abbasbhay
432dbb2566 [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-07-08 09:51:21 +02:00
OCA-git-bot
6354d68c1e [BOT] post-merge updates 2024-05-21 17:38:17 +00:00
Houzéfa Abbasbhay
08139ea24d [IMP] web_timeline: Align to top instead of bottom
This avoids somewhat ugly very large "Unassigned" first row.
2024-04-08 09:22:35 +02:00
Houzéfa Abbasbhay
b69410f4b5 [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-04-08 09:22:22 +02:00
OCA-git-bot
d891f17f5c [BOT] post-merge updates 2024-04-06 16:42:11 +00:00
Houzéfa Abbasbhay
98bc9851e6 [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-04-04 09:41:03 +02:00
OCA-git-bot
99aadcd7c6 [BOT] post-merge updates 2024-04-02 14:54:41 +00:00
Houzéfa Abbasbhay
8f4fd737d0 [IMP] web_timeline: Add demo view on cron tasks
This way we can showcase this module without project_timeline.
2024-04-02 16:19:43 +02:00
OCA-git-bot
1bc582166b [BOT] post-merge updates 2024-04-02 14:16:09 +00:00
Houzéfa Abbasbhay
bc577b6656 [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-04-02 16:04:35 +02:00
Houzéfa Abbasbhay
d490f8f65f 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-01-11 16:49:05 +00:00
mymage
4de0742d99 Translated using Weblate (Italian)
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/it/
2023-11-27 11:34:00 +00:00
mymage
c916988477 Added translation using Weblate (Italian) 2023-11-27 09:04:46 +00:00
Adriano Prado
06bfc8cb5f 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/
2023-10-28 16:10:35 +00:00
Weblate
a36e01bd7d 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/
2023-10-09 23:54:23 +00:00
OCA-git-bot
c2510c994e [UPD] README.rst 2023-09-14 07:34:52 +00:00
OCA-git-bot
d53cacd6f2 web_timeline 16.0.1.0.3 2023-09-14 07:34:45 +00:00
OCA-git-bot
2ede3b11d7 Merge PR #2603 into 16.0
Signed-off-by pedrobaeza
2023-09-14 07:31:06 +00:00
OCA-git-bot
0fcc326ee1 [UPD] README.rst 2023-09-03 17:59:06 +00:00
Henrik Norlin
c253255e9e [FIX] web_timeline: date_delay = date_stop - date_start 2023-09-03 17:41:17 +02:00
Ivorra78
38d96ec322 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/
2023-09-02 20:35:26 +00:00
OCA-git-bot
c39db89794 web_timeline 16.0.1.0.2 2023-08-30 16:15:43 +00:00
Henrik Norlin
2b218919e4 [FIX] web_timeline: Add record - FormViewDialog - resId: null -> false (cannot be null) 2023-08-29 21:52:39 +02:00
OCA-git-bot
76bacce796 web_timeline 16.0.1.0.1 2023-06-06 05:53:50 +00:00
Yadier A. De Quesada
7dbe95bbe3 [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
2023-06-02 18:00:50 -04:00
Bole
94aaaeb19f 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/
2023-04-03 13:22:28 +00:00
Ediz Duman
22672a106b Translated using Weblate (Turkish)
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/tr/
2023-03-06 20:08:50 +00:00
Ediz Duman
d60abf7892 Added translation using Weblate (Turkish) 2023-03-06 18:46:09 +00:00
OCA-git-bot
b82f608f2c [UPD] README.rst 2023-03-02 09:34:09 +00:00
oca-ci
39081b996a [UPD] Update web_timeline.pot 2023-03-02 09:31:26 +00:00
anjeel.haria
995e9e8af7 [MIG] web_timeline: Migration to 16.0
Syntax changes

Syntax changes
2023-03-01 16:03:37 +01:00
OCA-git-bot
c11db6cd85 web_timeline 15.0.1.0.1 2023-03-01 15:51:01 +01:00
jguenat
832bba7520 [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
2023-03-01 15:51:01 +01:00
jguenat
8245aaa885 [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
2023-03-01 15:51:01 +01:00
OCA-git-bot
67ce336f30 [UPD] README.rst 2023-03-01 15:51:01 +01:00
oca-ci
8957685a07 [UPD] Update web_timeline.pot 2023-03-01 15:51:01 +01:00
Alexis de Lattre
94323daa0c Update vis-timeline-graph2d lib: 7.3.4 -> 7.7.0 2023-03-01 15:51:01 +01:00
Alexis de Lattre
a9f6eb53e5 [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.
2023-03-01 15:51:01 +01:00
Luis D. Lafaurie
a3405673c8 [IMP] web_timeline: allow UNASSIGNED grouping when using M2M field 2023-03-01 15:51:01 +01:00
CarlosRoca13
07ef036e00 [FIX] web_timeline: Allow groupby m2m fields 2023-03-01 15:51:01 +01:00