Thursday, September 18, 2025
4 changes · saas-18.2
Resolved issues and error corrections
When users create a mass mailing and change the target audience type, their saved favorite templates now update to show the relevant options. This helps prevent users from seeing outdated or mismatched templates when preparing campaigns.
Original PR description
In mass_mailing, when creating a new mailing, the theme selector allows users to select base templates for their mailings. Users can also add their own model-specific templates by marking mailings as "Favorite"s, which will cause them to show up in model selectors if the template's target model matches the new mailing's target model. However, in some circumstances, changing the target model does not cause the available template mailings to update. This is due to the callback responsible for updating the templates not reading the model variable correctly, causing useRecordObserver to not being called every time it is updated. This commit fixes this issue, therefore causing favorite templates to be updated more reliably. task-5054968 Forward-Port-Of: odoo/odoo#227424
The calendar year view now responds reliably when the browser window is resized. This prevents layout problems in the month-by-month year display and gives users a smoother calendar experience.
Original PR description
FullCalendar already applies a debounce on the `windowResize` handler. Thus, doing it again in our renderer is a duplicated effort. Also, in the Year calendar renderer, the debounced version of the handler is initialized after the FullCalendar instances (one for each month) are created... which prevents it from being run at all. This commit fixes and cleans this up by directly passing our handler to FullCalendar, letting him do the rest. task-4809668 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#227505 Forward-Port-Of: odoo/odoo#227458
When sending survey invitations, the email subject now updates correctly when a different or edited template is selected. This helps users avoid sending invitations with outdated or unintended subject lines.
Original PR description
Description of the issue/feature this PR addresses: Fixed [previous commit] where the subject doesn't update when the template was updated. This was due to a filter in place preventing this from happening. Steps to reproduce on runbot: 1. Go to mail templates and search for Survey 2. Open the Survey: Invite template 3. Update the subject on this template 4. Open the Surveys app and select any survey 5. Click on Share and then enable send by email 6. Change the template being used 6. The subject will stay the same [previous commit]: https://github.com/odoo/odoo/commit/16a2c28c9aec307f7ce9dbed0a660b512db31f3a opw-4654411 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#221049
This update adjusts a Hong Kong payroll accounting unit test to match recent changes in how leave records are generated. It helps keep automated testing reliable so future payroll changes can be validated with fewer false failures.
Original PR description
Explanation: _generate_leave method is updated in saas-18.1. build_error-229902