Tuesday, May 6, 2025
2 changes · saas-18.1
Resolved issues and error corrections
The mail composer now correctly hides the file upload option when uploads are disabled, including in spreadsheet cell discussions. This prevents users from seeing an action they are not allowed to use, making the interface more consistent and less confusing.
Original PR description
## Description In spreadsheet cell thread, setting `allowUpload` to false did not hide the file upload button in the composer. This was due to missing `allowUpload` checks within the composer actions logic. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update keeps WhatsApp attachment upload checks in one place, making the composer behave more consistently. It reduces the chance of upload controls appearing incorrectly and helps maintain a smoother messaging experience.
Original PR description
## Description Instead of checking thread type and attachment count in composer actions, override the allowUpload method in the WhatsApp composer patch to encapsulate the condition logic.