Monday, March 25, 2019
2 changes · master
Resolved issues and error corrections
This fixes an automated web test that could fail in the Community edition when a menu item was not present. It also corrects how focus is handled during simulated clicks, making test behavior more reliable without changing business functionality.
Original PR description
A fix attempt for the clickEveryWhere test was made in 39e71353c5. Unfortunately, the last modification of the fix were not tested on the runbot and introduced two new issues. 1) The click method on…
A fix attempt for the clickEveryWhere test was made in 39e71353c5. Unfortunately, the last modification of the fix were not tested on the runbot and introduced two new issues. 1) The click method on the home menu has been changed to use an enhanced _click function. This function crash when the jquery element is empty. As this menu does not exists in community, the test miserably fails. 2) A "focus" event was added in the _click function that simulates a real click. But the "focus" event is not a mouse event and as nothing to do there. With this commit, the _click function returns immediatly when the element is empty. Also, the "focus" event is removed from the _click simulation but a focus method is used to give focus to the close button. Giving the focus to the cancel button is itself a fix for the DateTimePicker field (see 39e7135). 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
This change fixes how several Odoo apps send company and user context during background server requests. It helps ensure features like bank syncing, Plaid connections, barcode workflows, and VoIP calls use the right settings consistently.