[FIX] mail: auto reload form on attachment changed through activity
Before this commit the feature to auto-reload on attachment changed only worked through composer or attachment box, now also works with "upload file" activity. closes odoo/odoo#93486 X-original-commit: 4ab3cb40b09f2c7278bea3bf1136b9ebf6dadc0e Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -126,7 +126,11 @@ registerModel({
|
||||
async _performUpload({ files }) {
|
||||
const composer = this.composerView && this.composerView.composer; // save before async
|
||||
const thread = this.thread; // save before async
|
||||
const chatter = this.chatterOwner || this.attachmentBoxView && this.attachmentBoxView.chatter; // save before async
|
||||
const chatter = (
|
||||
(this.chatterOwner) ||
|
||||
(this.attachmentBoxView && this.attachmentBoxView.chatter) ||
|
||||
(this.activityView && this.activityView.activityBoxView.chatter)
|
||||
); // save before async
|
||||
const activity = this.activityView && this.activityView.activity; // save before async
|
||||
const uploadingAttachments = new Map();
|
||||
for (const file of files) {
|
||||
|
||||
Reference in New Issue
Block a user