Commit Graph

1278 Commits

Author SHA1 Message Date
Carlos Roca
c2de3f5e53 [IMP] web_time_range_menu_custom: pre-commit auto fixes 2024-11-26 12:59:59 +01:00
mymage
248c6fd8b8 Added translation using Weblate (Italian) 2024-11-26 12:59:59 +01:00
Carlos Roca
6ec05b0d61 [MIG] web_time_range_menu_custom: Migration to 16.0 2024-11-26 12:59:59 +01:00
Ivorra78
8390950bbe Added translation using Weblate (Spanish) 2024-11-22 08:00:38 +01:00
Carlos Roca
90441f2a50 [IMP] web_time_range_menu_custom: Dates include today but other granularities not 2024-11-22 08:00:38 +01:00
Carlos Roca
6e70a2517f [MIG] web_time_range_menu_custom: Migration to 15.0 2024-11-22 08:00:38 +01:00
Carlos Roca
af81b51413 [IMP] web_time_range_menu_custom: black, isort, prettier 2024-11-22 08:00:38 +01:00
Alexandre D. Díaz
ca6428db56 [FIX] web_time_range_menu_custom: Mix custom and 'no custom' periods
Steps to reproduce:

- Go to pivot view
- Select a custom time range
- Select a predefined comparison period (Ex. Previous Period)

Now you see that the comparison period is not being applied.
After this commit the comparison period is applied correctly.

TT29249
2024-11-22 08:00:38 +01:00
Alexandre D. Díaz
50be7c0e47 [ADD] web_time_range_menu_custom 2024-11-22 08:00:38 +01:00
Weblate
e27d14c539 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-17.0/web-17.0-web_editor_class_selector
Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_editor_class_selector/
2024-11-20 15:52:36 +00:00
OCA-git-bot
955ab1d0e2 [BOT] post-merge updates 2024-11-20 14:17:51 +00:00
oca-ci
dd748d6865 [UPD] Update web_editor_class_selector.pot 2024-11-20 14:14:43 +00:00
OCA-git-bot
f1076814a7 Merge PR #2991 into 17.0
Signed-off-by pedrobaeza
2024-11-20 14:12:24 +00:00
Carlos Lopez
1a2cab1cac [MIG] web_editor_class_selector: Migration to 17.0 2024-11-20 08:45:56 -05:00
Carlos Lopez
24a30554ba [IMP] web_editor_class_selector: pre-commit stuff 2024-11-16 11:26:23 -05:00
Carlos Lopez
937872011d [FIX] web_editor_class_selector: Avoid errors when custom CSS class is not present
Go to the website
Open the editor
Add text and select it, a traceback is shown
2024-11-16 11:26:23 -05:00
mymage
67109ced8a Added translation using Weblate (Italian) 2024-11-16 11:26:23 -05:00
Carlos Lopez
a0996d3626 [ADD] web_editor_class_selector: new module to add custom CSS in HTML editor.
This module allows users to create custom CSS classes, which can then be selected and applied directly in the HTML editor.
2024-11-16 11:26:23 -05:00
OCA-git-bot
990d84e999 [BOT] post-merge updates 2024-11-04 16:39:21 +00:00
OCA-git-bot
96cb5d5d91 Merge PR #2978 into 17.0
Signed-off-by pedrobaeza
2024-11-04 16:35:37 +00:00
Víctor Martínez
d85a34ccc5 [FIX] web_responsive: Fix test related to ir.actions.act_window
Related to cac20c5f2f

Now it is necessary to have an ir.actions.act_window record
2024-11-04 17:29:57 +01:00
OCA-git-bot
6b62ffb744 [BOT] post-merge updates 2024-10-30 17:49:40 +00:00
OCA-git-bot
e802b7083e Merge PR #2972 into 17.0
Signed-off-by pedrobaeza
2024-10-30 17:45:40 +00:00
Carlos Lopez
5feee78faa [IMP] web_timeline: Update vis-timeline-graph2d lib: 7.7.0 -> 7.7.3 2024-10-23 19:56:59 -05:00
mymage
03bf845055 Translated using Weblate (Italian)
Currently translated at 100.0% (16 of 16 strings)

Translation: web-17.0/web-17.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_timeline/it/
2024-10-22 09:06:38 +00:00
Weblate
6ce7f0de26 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-17.0/web-17.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_timeline/
2024-10-21 18:50:48 +00:00
OCA-git-bot
247a73e1d4 [BOT] post-merge updates 2024-10-21 15:39:32 +00:00
oca-ci
4c790ea02a [UPD] Update web_timeline.pot 2024-10-21 15:36:37 +00:00
OCA-git-bot
8320c2f152 Merge PR #2969 into 17.0
Signed-off-by CarlosRoca13
2024-10-21 15:34:11 +00:00
Carlos Lopez
43341291dd [MIG] web_timeline: Migration to 17.0
- Convert Moment.js to Luxon.
- Replace Underscore.js with native JavaScript code.
- Migrate legacy views to the new system and add an architecture parser to separate logic.
- added basic test
2024-10-20 12:57:53 -05:00
Carlos Lopez
459b5d2964 [MOVE] web_timeline: new folder structure according Odoo guideslines 2024-10-20 12:32:49 -05:00
Carlos Lopez
c5ab296d56 [IMP] web_timeline: pre-commit auto fixes 2024-10-20 12:32:48 -05:00
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
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