Sunday, May 3, 2026
2 changes · saas-19.2
Resolved issues and error corrections
This update addresses a technical issue that could cause problems with voice message testing. The change ensures that asynchronous operations related to voice playback complete before promises are resolved, preventing race conditions. This improves the stability and reliability of voice message functionality.
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, improving the reliability of testing and preventing errors.
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