Daily updates from Odoo
Friday, July 4, 2025
8 changes · master
Code cleanup and technical improvements
The mail prompt feature now uses Odoo's default AI assistant instead of an older external endpoint. This makes AI-generated mail responses more consistent and easier to maintain, with updated tests to protect the behavior.
Original PR description
- This drops the use of the olg iap endpoint in the mail prompt feature. - We also refactor the `_generate_response` method to ensure the system messages are at the beginning of the full set of conversation.
The date and time service used by several Odoo screens has been simplified so its internal responsibilities are clearer and easier to maintain. This is mainly an internal cleanup that should reduce future maintenance effort without changing day-to-day user workflows.
Original PR description
This commit is a rework of the DateTime service & hook modules in web. The API of the 'datetime_service' was too convoluted, bloated with exported members that were only used by the hook. Now, most of the logic is handled by the service, and the hook simply gives it a flag to tell the service to handle Owl lifecycle hooks. This effectively allows to only send the few members (methods & variables) that are used by callers of the service externally. Community: https://github.com/odoo/odoo/pull/217179 Task [3495251](https://www.odoo.com/odoo/project/133/tasks/3495251)
The website editor assets are reorganized into a dedicated bundle used by website-related apps. This helps keep future email marketing assets separate from the full website builder, reducing unnecessary loading and making maintenance cleaner.
Original PR description
Community PR: https://github.com/odoo/odoo/pull/215218 ------ [[REF] website, *: add website.website_builder_assets bundle](https://github.com/odoo/enterprise/pull/88346/commits/0bdf7a526888b3c9f8a45fb31fe74e416b6341e1) *: website_appointment, website_helpdesk, website_knowledge, website_sale_renting, website_studio This commit adds the `website.website_builder_assets` bundle which includes `html_builder.assets` and is used by the website builder editor. This will allow mass_mailing to have its own bundle too, without the need to load everything from the website builder. Forward-Port-Of: odoo/enterprise#88346
This update cleans up how several web interface components build page content, reducing security warnings from automated checks. It is an internal code quality change that helps keep the interface safer and easier to maintain without changing business workflows.
Original PR description
Use markup template and html functions to make the code cleaner and safer while no longer triggering ci/security flag.
The document PDF manager’s automated tests were moved to a newer testing framework. This helps maintain test reliability and makes future changes easier, with no expected change for users.
The accounting reports module’s automated tests were converted to a newer testing framework. This is an internal maintenance change that helps keep quality checks reliable without changing day-to-day product behavior.
The social testing module updates its automated checks to use a newer internal test framework. This helps keep the module easier to maintain without changing business features or user workflows.
The sales planning scheduling view was updated to use safer, cleaner methods for displaying formatted text. This reduces internal security-check noise and helps keep the feature easier to maintain without changing the user experience.
Original PR description
Use markup template and html functions to make the code cleaner and safer while no longer triggering ci/security flag.