Sunday, December 10, 2023
1 change · 17.0
Resolved issues and error corrections
This fix ensures that follow-up emails now respect the email sender address configured in email templates, rather than always using a default sender. The system now properly evaluates the configured sender address, allowing businesses to customize who follow-up emails appear to come from, which improves email deliverability and brand consistency.
Original PR description
Before this fix, the `email_from` set on the `mail.template` is not used when sending a followup email. Instead, only
`partner._get_followup_responsible()` is used to set the author and the sender of the email (see the `_send_email` function).
Now, we read the `email_from` to set the sender of the email. We use `_render_template` to possibly evaluate a dynamic expression (for instance: `{{ object._get_followup_responsible().email_formatted }}`).
opw-3574286
Forward-Port-Of: odoo/enterprise#52255
Forward-Port-Of: odoo/enterprise#51440