Sunday, March 1, 2026
1 change · saas-18.3
Resolved issues and error corrections
This update fixes an issue where users couldn't download attachments sent via mass emails (like event invitations). The fix ensures attachments are correctly linked to the related event record, granting the necessary access for download. This improves the user experience when receiving and managing event communications.
Original PR description
**Steps to reproduce:** - Install Event app - Log as a user with Events/Administrator rights - Ensure its Administration rights are not set to Settings - Go to an open Event - Add a new attendee with mail - Ticket is automatically sent, and logged in chatter - User doesn't have the rights to download the file from the chatter **Issue:** User has no 'read' access to `ir.attachment` due to a missing related record (res_model and res_id are set to "mail.message" and 0 instead of the `event.registration` record). It can be bypassed when the user also has system rights (or is the sender) and it works properly when sending manually the mail. **Fix:** Reapply the fix used in 19.0+. (We could also hide the attachment in chatter when it is not linked properly) related: https://github.com/odoo/odoo/commit/19c78b2585cec9473ad2d2ab9101235c45a03314 opw-5349820 Forward-Port-Of: odoo/odoo#250894 Forward-Port-Of: odoo/odoo#247346