Thursday, June 20, 2024
5 changes · 17.0
Resolved issues and error corrections
This updates an internal HR leave test so it works with the timezone names available in Ubuntu Noble. It helps keep automated checks reliable without changing how users request or manage leave.
Original PR description
Hongkong was removed from tzdata in ubuntu Noble, `Asia/Honk_Kong` must be used instead.
A navigation button now remains available in read-only embedded lists when the list is configured to open records in a form view. This fixes a usability issue that prevented users from opening related records from those lists.
Original PR description
Commit [1] introduced a way for an editable list view to open the record inside a form view in the current window (adding itself to the breadcrumb) when clicked. It's done by adding a `open_form_view` attribute on the tree node, which then adds automatically a "View" button/action on each tree lines. But there was an unseen issue where when that x2m (tree) field was set as readonly, the button would not be shown, preventing the navigation. [1]: https://github.com/odoo/odoo/commit/258e6a019a21042bf4f6cf70fcce386d37afd50c task-3973116
Fixes an issue where grouped list views could show the wrong total in nested group pagers after sorting or reloading. Users now see accurate group counts and avoid stale empty groups appearing when the sort order changes.
Original PR description
Have a list view grouped by 2 fields (e.g. Contacts: Salesperson > name). Open a group which contains more groups than the limit (set the groups_limit attribute on the arch if necessary). Next to the…
Have a list view grouped by 2 fields (e.g. Contacts: Salesperson > name). Open a group which contains more groups than the limit (set the groups_limit attribute on the arch if necessary). Next to the name of the group, the total number of records belonging to that group is displayed (e.g. Mitchel Admin (32)). In the group header row, the pager allows to browser the inner **groups**, so the total displayed there is the total number of inner groups in that group (e.g. 1-10 / 31). From that point, clicking on a column header to sort by a given field produces a reload, and the group pager is updated with the wrong total: it now displays the number of records, not the number of groups (1-10 / 32 in the example). This commit fixes that issue. The test also hihglighted another issue: when reloaded, we sometimes have to keep former groups that became empty and that weren't returned by the last call to web_read_group (e.g. we drag and dropped the last record from a group to another group). We only do that if search query parameters didn't change. However, we forgot to take the orderBy into account, so when sorting groups, groups that were no longer on the current page were still displayed, with count 0. This commit also fixes that issue. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The IoT hardware drivers now handle unexpected non-JSON responses more gracefully. Instead of showing a vague error, the system logs the problematic response so support teams can diagnose device or CDN issues faster.
Original PR description
Before commit: To reproduce the error: A device may send non-JSON data to the IoT controller, or the CDN might return an error in a non-JSON format. We just get a very non-explicit error: "Expecting value: line 1 column 1 (char 0)". After commit: We add a catch for non-JSON data and log the error along with the incorrect data to have more information. opw-3876631
This fix ensures customer or contact profile pictures are shown correctly in the WhatsApp section instead of displaying an incorrect image link. It improves visual recognition in conversations and reduces confusion for users managing WhatsApp messages in Odoo.
Original PR description
PR modifies avatar URL, instead of incorrectly returning wrong URL it uses `avatarUrl` to get it.