Saturday, May 10, 2025
5 changes · saas-18.3
Resolved issues and error corrections
This update prevents an error when users open the optional column menu in the “Blocked By” section of project tasks. It keeps task dependency views usable and avoids an interruption during project task management.
Original PR description
**Steps to reproduce:** - Install project - Enable task dependencies - Go to the blocked-by notebook - Click the optional column dropdown **Issue:** when clicking on optional column in blocked-by notebook a traceback occurs **Fix:** Used parent.has_template_ancestor instead of has_template_ancestor to explicitly access the field from the parent record . task-4764758 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an unreliable HR automated test by waiting for the new chat window to appear before checking the total number of open chats. The change helps reduce false test failures and improves confidence in the HR module's quality checks.
Original PR description
The test `@hr/m2x_avatar_employee/many2one in form view` was failing non-deterministically with the following error: ``` 9. [toHaveCount] found 1 element matching ".o-mail-ChatWindow" > Expected: 2 > Received: 1 > Elements: [ <div.o-mail-ChatWindow.fixed-bottom.overflow-hidden.d-flex.flex-column.shadow-sm.bg-100.rounded-4.border.border-dark.mb-2>, ] ``` This happens because it clicks on avatar card button to send a message, which opens a chat window. However the assertion is made synchronously after the `await contains().click()`, which is not necessarily enough time to ensure the chat window has been open. The next assertion is asserting asynchronously presence of new chat window with specific header, therefore this commit fixes the issue by swapping the assertion orders. When the new chat window with header is shown, then asserting synchronously there are 2 chat windows is correct (it opens new chat window, in addition to keeping previous one open). runbot-163001
The leave request form now behaves more clearly for managers. Action buttons only appear after a leave request is saved, and available hours are shown when the selected time off type can deduct extra hours.
Original PR description
With this commit, some elements in leave's form view are fixed :
- The buttons are only shown when the leave is saved.
- The available hours are displayed when a time off type with deduct extra hours are selected.
task-4756706This update fixes an error that appeared when users opened the optional column menu in sub-task or blocked-by sections of field service tasks. It helps users manage task details without interruptions or unexpected crash screens.
Original PR description
**Steps to reproduce:** - Install `project` and `industry_fsm_sale` modules - Open any task with subtasks - Go to the Sub-tasks notebook or blocked-by notebook - Click the optional column dropdown **Issue:** - when clicking on optional column in subtasks/blockedby notebook a traceback occurs **Fix:** - Used `parent.has_template_ancestor` instead of `has_template_ancestor` to explicitly access the field from the parent record . task-4764758
The live chat helpdesk report query was adjusted to match recent backend changes. This helps keep reporting reliable without changing how users interact with the helpdesk live chat feature.
Original PR description
Group by has been removed as there is only one channel per row, other tables are now joined with lateral. Enterprise counter-part. https://github.com/odoo/odoo/pull/209254