Tuesday, February 14, 2023
2 changes · master
Enhancements to existing features
The Gantt planning view has been rebuilt to make large schedules load and scroll much faster. Users will also notice that details now open by clicking an item instead of hovering, making interactions more deliberate and predictable.
Original PR description
Conversion of the gantt view to OWL. Along the way the UI has been changed: - hover a pill does not make a popover appear anymore. It is now necessary to click on the pill to make it appear. A button…
Conversion of the gantt view to OWL. Along the way the UI has been changed: - hover a pill does not make a popover appear anymore. It is now necessary to click on the pill to make it appear. A button "Edit" in the popover still allows to edit the pill (if edition is available). The unused arch attribute collapse_first_level has been removed. Technically: - complete revamp of the DOM and class names to trim down dead code and needless nesting; - the gantt view now makes use of the CSS display "grid" property in several places (most importantly in the main row container), further simplifying the DOM and allowing for list virtualization; - this virtualization process ensures that only visible rows (and their related elements) are effectively rendered in the DOM. This is done using the newly added "useVirtual" hook. The rendering process of the new gantt view should thus be a lot quicker as a result. Enterprise counterpart PR: odoo/enterprise#36202 Task Id: 3105022 Co-authored-by: Bruno Boi <boi@odoo.com> Co-authored-by: Julien Mougenot <jum@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
The Gantt view used across planning-style screens has been rebuilt to load and scroll faster, especially with many rows. Users will notice a small interaction change: clicking an item now opens its details instead of hovering over it.
Original PR description
Conversion of the gantt view to OWL. Along the way the UI has been changed: - hover a pill does not make a popover appear anymore. It is now necessary to click on the pill to make it appear. A button…
Conversion of the gantt view to OWL. Along the way the UI has been changed: - hover a pill does not make a popover appear anymore. It is now necessary to click on the pill to make it appear. A button "Edit" in the popover still allows to edit the pill (if edition is available). The unused arch attribute collapse_first_level has been removed. Technically: - complete revamp of the DOM and class names to trim down dead code and needless nesting; - the gantt view now makes use of the CSS display "grid" property in several places (most importantly in the main row container), further simplifying the DOM and allowing for list virtualization; - this virtualization process ensures that only visible rows (and their related elements) are effectively rendered in the DOM. This is done using the newly added "useVirtual" hook. The rendering process of the new gantt view should thus be a lot quicker as a result. Note that the legacy gantt view is still available since its extensions are not yet converted (through the js_class legacy_gantt). Its class name is now o_legacy_gantt_view. Community counterpart PR: odoo/odoo#110819 Task Id: 3105022 Co-authored-by: Bruno Boi <boi@odoo.com> Co-authored-by: Julien Mougenot <jum@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>