I need to inherit a js funtion in mail module. Here's the file path of the file that I want to inherit : mail\static\src\models\activity\activity.js
The function I want to inherit is
async markAsDone({ attachments = [], feedback = false }) {
const attachmentIds = attachments.map(attachment => attachment.id);
await this.async(() => this.env.services.rpc({
model: 'mail.activity',
method: 'action_feedback',
args: [[this.id]],
kwargs: {
attachment_ids: attachmentIds,
feedback,
},
}));
this.thread.refresh();
this.delete();
}
I want to add location.reload(); before this.delete();
The reason for this is that I want to update screen after an attachment is uploaded.
Thanks.