Saturday, September 19, 2026
1 change · saas-19.4
Resolved issues and error corrections
Employees and managers can now add and view attachments on time off requests even when supporting documents are not required for that time off type. This prevents uploaded files from appearing to disappear and keeps relevant leave documentation accessible to the right users.
Original PR description
Issue: ---------------------------------------- If the option "Require Supporting Document" on the Time Off Type is unticked, then when adding an attachment on a leave it disappears. Steps to reproduce: ---------------------------------------- - Have a Time Off Type with "Require Supporting Document" unticked - Create a leave with this time off type - On the form view add an attachment through the paperclip icon - It disappears Cause: ---------------------------------------- In `_compute_attachment_is_visible()` if `work_entry_type_support_document` is `False` then `attachment_is_visible` too. `attachment_is_visible` then control whether the attachments of a leave are visible. Solution: ---------------------------------------- Remove the condition on `work_entry_type_support_document`, `attachment_is_visible` purpose is to limit the access to attachments for users unliked to the leave. opw-6542429 Forward-Port-Of: odoo/odoo#289148