Daily updates from Odoo
Tuesday, July 11, 2023
2 changes · master
Resolved issues and error corrections
Sales orders scheduled in Planning now show the correct allocated hours when adding or editing shifts. This prevents confusing zero-hour displays and avoids unnecessary validation errors when users save planned shifts.
Original PR description
Steps: - Go to the planning module and find the scheduled sales order where the allocated hours is already completed. - now if we add a new shift the allocated hours by default shows 0. - click on save it shows a validation error. Fix: correctly show the allocated hour for slots. task-3183771
The Gantt view now consistently uses touch-friendly interaction events for dragging and related actions. This fixes incomplete behavior introduced by an earlier change, making planning timelines more reliable on tablets and other touch devices.
Original PR description
Since [this commit](b85fdb60807a469d1457be7851ccd8068d680177), the draggable hooks in the views make use of pointer events instead of mouse events to support touch devices. However the gantt view was not entirely adapted to these changes (the draggable hook builder was changed but the other listeners in the gantt view were not). This PR properly switches all event listeners in the gantt view to listen to pointer events. Community PR: https://github.com/odoo/odoo/pull/126772