[FIX] mail: fileupload bug

Steps to reproduce (using documents app):
1. Create a new document request
2. Select the created document request, enable the chatter
3. Upload a document using the document request icon
4. Hide the chatter
5. Show the chatter
Odoo Client Error

OPW-2643331

closes odoo/odoo#76402

X-original-commit: ef6ee09121e9f6ed8310aa34800d8d765c9149cf
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Habib (ayh)
2021-09-13 19:39:04 +00:00
parent a8568d10cc
commit 15d5769d95
@@ -130,6 +130,7 @@
<i class="fa fa-upload"/> Upload Document
</button>
<FileUploader
t-if="activity.thread"
attachmentLocalIds="activity.attachments.map(attachment => attachment.localId)"
threadLocalId="activity.thread.localId"
t-on-o-attachment-created="_onAttachmentCreated"