Tuesday, October 3, 2023
3 changes · master
Code cleanup and technical improvements
This update replaces older cookie-handling code with a shared core utility, making internal browser-cookie use simpler and more consistent across several Odoo apps. Users should not see functional changes, but the cleanup helps reduce maintenance complexity and supports future improvements.
Original PR description
The cookie service was replaced by a utils file in core. This was done to be able to use the cookies without the need of environment. "Om Nom Nom Nom" - Cookie Monster part-of task-id 3439226
This update reorganizes the internal mail message posting and editing process so it relies more consistently on the existing composer information. It reduces duplicated parameter handling, making the code easier to maintain with no expected change for end users.
Original PR description
Many params were passed as param in many functions, while most data are stored in Composer record. This commit simplifies code by making these function receive a composer, to reduce amount of params. https://github.com/odoo/odoo/pull/137276
Test code in Web Studio and Web Enterprise was updated to use a clearer way of checking expected errors. This reduces ambiguity in automated tests and helps maintain product quality without changing user-facing behavior.
Original PR description
*web_studio,web_enterprise This commit is the counter-part of odoo/odoo#137120 where we introduce the assert method "expectToThrow" to better handle errors in tests.