Commit Graph

1300 Commits (882c8ef90311dee869ebc8f3fcb8a113112b0010)

Author SHA1 Message Date
Jasmin Solanki 882c8ef903
Merge cf61ce8216 into 6a9a4ad63b 2025-04-24 05:02:36 +02:00
OCA-git-bot 6a9a4ad63b [BOT] post-merge updates 2025-04-23 18:26:16 +00:00
oca-ci 7d212d0900 [UPD] Update web_responsive.pot 2025-04-23 18:22:53 +00:00
OCA-git-bot 631855ccfb Merge PR #3037 into 18.0
Signed-off-by pedrobaeza
2025-04-23 18:20:01 +00:00
kobros-tech 1c5824d2ea [18.0][MIG] web_responsive: Migration to 18.0 2025-04-23 16:28:56 +03:00
OCA-git-bot 6a991714e2 [BOT] post-merge updates 2025-04-23 06:03:22 +00:00
oca-ci 87b0bad74f [UPD] Update web_editor_class_selector.pot 2025-04-23 05:59:39 +00:00
OCA-git-bot 642a674bd0 Merge PR #3161 into 18.0
Signed-off-by CarlosRoca13
2025-04-23 05:56:46 +00:00
Carlos Lopez e871d8a88e [MIG] web_editor_class_selector: Migration to version 18.0 2025-04-22 09:54:56 -05:00
Carlos Lopez fa26af9fa2 [IMP] web_editor_class_selector: pre-commit auto fixes 2025-04-22 09:50:32 -05:00
mymage a94b810367 Translated using Weblate (Italian)
Currently translated at 100.0% (18 of 18 strings)

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/it/
2025-04-22 09:50:32 -05:00
Weblate 0f5c44344b 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/
2025-04-22 09:50:32 -05:00
Pedro M. Baeza a44a8b9296 [IMP] web_editor_class_selector: Order classes by sequence 2025-04-22 09:50:32 -05:00
Weblate 327b800406 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/
2025-04-22 09:50:32 -05:00
Carlos Lopez 5e2a8df0eb [MIG] web_editor_class_selector: Migration to 17.0 2025-04-22 09:50:32 -05:00
Carlos Lopez 544141f15a [IMP] web_editor_class_selector: pre-commit stuff 2025-04-22 09:50:32 -05:00
Carlos Lopez d92d397c49 [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
2025-04-22 09:50:32 -05:00
mymage 96d2f66971 Added translation using Weblate (Italian) 2025-04-22 09:50:32 -05:00
Carlos Lopez 2a412fc7f1 [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.
2025-04-22 09:50:32 -05:00
JasminSForgeFlow cf61ce8216 [MIG] web_timeline: Migration to 18.0 2025-04-21 14:04:43 +05:30
JasminSForgeFlow d2bca998b0 [IMP] web_timeline: black, isort, prettier 2025-04-21 14:00:03 +05:30
OCA-git-bot e3d53e49d0 [BOT] post-merge updates 2025-04-21 14:00:03 +05:30
Carlos Lopez b1952c9301 [IMP] web_timeline: Update vis-timeline-graph2d lib: 7.7.0 -> 7.7.3 2025-04-21 14:00:03 +05:30
mymage 381f5360d6 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/
2025-04-21 14:00:03 +05:30
Weblate 95d4d7c374 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/
2025-04-21 14:00:03 +05:30
OCA-git-bot 9029bb9877 [BOT] post-merge updates 2025-04-21 14:00:03 +05:30
oca-ci af8da5bdd9 [UPD] Update web_timeline.pot 2025-04-21 14:00:03 +05:30
Carlos Lopez decf2592df [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
2025-04-21 14:00:03 +05:30
Carlos Lopez 2037dd2932 [MOVE] web_timeline: new folder structure according Odoo guideslines 2025-04-21 14:00:03 +05:30
Carlos Lopez 2e4539410d [IMP] web_timeline: pre-commit auto fixes 2025-04-21 14:00:03 +05:30
Houzéfa Abbasbhay a0962b588c [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-21 14:00:03 +05:30
Houzéfa Abbasbhay 6bba685495 [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()`).
2025-04-21 14:00:03 +05:30
Houzéfa Abbasbhay bbd4d3af04 [IMP] web_timeline: Align to top instead of bottom
This avoids somewhat ugly very large "Unassigned" first row.
2025-04-21 14:00:03 +05:30
Houzéfa Abbasbhay 1c9754467e [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.
2025-04-21 14:00:03 +05:30
Houzéfa Abbasbhay 52d397ad3e [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-21 14:00:03 +05:30
Houzéfa Abbasbhay 576c33db48 [IMP] web_timeline: Add demo view on cron tasks
This way we can showcase this module without project_timeline.
2025-04-21 14:00:03 +05:30
Houzéfa Abbasbhay a70871d14f [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-21 14:00:03 +05:30
Houzéfa Abbasbhay 030196a6f0 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/
2025-04-21 14:00:03 +05:30
mymage 379aa9574a Added translation using Weblate (Italian) 2025-04-21 14:00:03 +05:30
Adriano Prado 13a1854dd0 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/
2025-04-21 14:00:03 +05:30
Weblate 0aafc1e360 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/
2025-04-21 14:00:03 +05:30
Henrik Norlin ea7e109fc0 [FIX] web_timeline: date_delay = date_stop - date_start 2025-04-21 14:00:03 +05:30
Ivorra78 350d7378e2 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/
2025-04-21 14:00:03 +05:30
Henrik Norlin f6aecb4af6 [FIX] web_timeline: Add record - FormViewDialog - resId: null -> false (cannot be null) 2025-04-21 14:00:03 +05:30
Yadier A. De Quesada 6f7a5d62e7 [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
2025-04-21 14:00:03 +05:30
Bole 32c0fd9d01 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/
2025-04-21 14:00:03 +05:30
Ediz Duman 1ada0e2a68 Added translation using Weblate (Turkish) 2025-04-21 14:00:03 +05:30
anjeel.haria a20b45ad92 [MIG] web_timeline: Migration to 16.0
Syntax changes

Syntax changes
2025-04-21 14:00:03 +05:30
jguenat 491b0f8e15 [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
2025-04-21 14:00:03 +05:30
jguenat a2bcaf7944 [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
2025-04-21 14:00:03 +05:30