Thursday, January 25, 2024
4 changes · saas-17.1
Resolved issues and error corrections
A test for the email marketing editor was updated to look for the code view button in the right place after a layout change. This helps keep automated checks reliable and reduces the risk of future editor issues slipping through.
Original PR description
Since commit [1], the sidebar is no longer in an iframe. Yet, the codeview tour was still trying to target sidebar buttons in the iframe. This updates the tour to target the buttons in the main document. [1]: https://github.com/odoo/odoo/commit/5623c858d06e77011680ef0a5e04da5fa5f207e5 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update ensures editor click-handling events are properly cleaned up when used outside website pages, including mass mailing scenarios. It helps prevent lingering interactions or unexpected behavior after using the editor, while also removing unused code.
Original PR description
After [1], because mass_mailing also had a SnippetsMenu outside an iframe, the code that was handling clicks was moved from website to web_editor. However, not all of the code was moved, and the code which unbind events from the $body was still only available for website. This commit fixes that and also removes some useless code present in the same file. [1]: https://github.com/odoo/odoo/commit/5623c858d06e77011680ef0a5e04da5fa5f207e5 Related to task-3630716
The chatbot test page now closes older test chat sessions before opening a new one. This prevents outdated conversations from interfering with current tests, making live chat chatbot validation more reliable.
Original PR description
Since [1], every opened live chat channel is returned by `init_messaging`. Every time the chatbot test page is accessed, a new channel is created but the outdated test channels are kept as is. We should ensure previous test channels are properly closed so that they don't interfere with the current one. [1]: https://github.com/odoo/odoo/pull/147917
This update fixes an internal automated test for project task workflows so it works consistently whether or not timesheet features are installed. It helps maintain product quality without changing the user experience.
Original PR description
This PR fixes a test that relies on the field `allocated_hours` being present in the task form view, which is true with `hr_timesheet` but not without.