Sunday, May 3, 2026
2 changes · 19.0
Resolved issues and error corrections
This update fixes a timing issue in mail voice message tests so they wait for the voice player to appear before continuing. This reduces false test failures and helps keep development checks stable without changing user-facing behavior.
Original PR description
Before this commit, voice message tests don't wait until the voice player is drawn before resolving the corresponding promise. This may lead to race conditions. This commit fixes the issue by properly `await`ing the completion of the asynchronous code before resolving the promise. Related runbot error: https://runbot.odoo.com/odoo/error/163783 Forward-Port-Of: odoo/odoo#261910 Forward-Port-Of: odoo/odoo#261795
This update resolves a potential issue where voice message tests were failing due to race conditions. The fix ensures that asynchronous code waits for the voice player to fully load before resolving promises, leading to more reliable test results. This improves the overall stability of the voice messaging feature.
Original PR description
Before this commit, voice message tests don't wait until the voice player is drawn before resolving the corresponding promise. This may lead to race conditions. This commit fixes the issue by properly `await`ing the completion of the asynchronous code before resolving the promise. Related runbot error: https://runbot.odoo.com/odoo/error/242411 Community: https://github.com/odoo/odoo/pull/261910 Forward-Port-Of: odoo/enterprise#115587