Tuesday, December 26, 2023
4 changes · 17.0
Resolved issues and error corrections
This fix improves internal test error messages so they show the actual required field name when a required value is missing. It helps developers identify issues faster during testing, reducing time spent diagnosing failed tests.
Original PR description
Prior to this commit, when an empty required field triggered an error, the message was: AssertionError: {fname!r} is a required field.
After this commit, the error message specifies the name of the required field: AssertionError: my_field_name is a required field.
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-prThis change fixes an unreliable automated test in the messaging area so it consistently checks that channel subscriptions renew correctly. It helps prevent false test results in the development pipeline without changing user-facing behavior.
Original PR description
The "Channel subscription is renewed when channel is left" test ensures the bus subscription is renewed when the user leaves the channel. In order to do so, the test relies on a patch of the bus service and awaits the `waitUntilSubscribe` helper. This is not correct: the subscription will never be triggered since the bus service method is patched to only call `assert.step`. This test passes most of the time by luck: `waitUntilSubscribe` detects the first subscription (the one that is triggered when starting the bus service) and the delay is most of the time enough for the step to be ready. This PR fixes the issue by: - waiting the first subscription to ensure it does not interfere with the test. - removing the bus service patch: waiting for the subscription is enough. fixes runbot-46941
This update fixes a display issue where the Q keyboard shortcut label overlapped with the filter removal button when shortcuts were shown. Users can now view shortcuts in the Field Service task list without confusing or cluttered controls.
Original PR description
Steps to reproduce: - go to field service > my tasks - press Alt to display keyboard shortcuts Observed behavior: the Q shortcut and the x button overlap Expected behavior: the x button should be hidden by the Q shortcut Task-3635644
This update fixes automated tests in the Stock Barcode module that were affected by a system-level change to how inventory movement records are ordered. The tests have been adjusted to ensure they continue to work correctly without changing what they actually test. This is a routine maintenance update to keep the system functioning properly.
Original PR description
odoo/odoo#143570 changes the default order on the `stock.move.line` model. Which means that some tests using this order as index references won't be aligned anymore and needs some adjustments. In order to avoid changing the meaning of the test, only had a `sorted()` before the comparisons to simulate the old default order. Forward-Port-Of: odoo/enterprise#52893 Forward-Port-Of: odoo/enterprise#52795