From 4274a061ff1498f647580c38c7048da8a8cb0a9c Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Tue, 13 Oct 2020 12:19:25 +0000 Subject: [FIX] mail: adds shadow to RPCs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds shadow to RPCs that are not supposed to be blocking. task-2352703 closes odoo/odoo#59991 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/models/thread/thread.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'addons/mail/static/src/models/thread/thread.js') diff --git a/addons/mail/static/src/models/thread/thread.js b/addons/mail/static/src/models/thread/thread.js index ed48d14f270..cd1ee77b1ce 100644 --- a/addons/mail/static/src/models/thread/thread.js +++ b/addons/mail/static/src/models/thread/thread.js @@ -332,7 +332,7 @@ function factory(dependencies) { model: 'mail.channel', method: 'channel_info', args: [ids], - }); + }, { shadow: true }); const channels = this.env.models['mail.thread'].insert( channelInfos.map(channelInfo => this.env.models['mail.thread'].convertData(channelInfo)) ); @@ -467,7 +467,7 @@ function factory(dependencies) { model, res_ids, }, - }); + }, { shadow: true }); for (const id in data) { const recipientInfoList = data[id].map(recipientInfoData => { const [partner_id, emailInfo, reason] = recipientInfoData; @@ -516,7 +516,7 @@ function factory(dependencies) { ], fields: ['id', 'name', 'mimetype'], orderBy: [{ name: 'id', asc: false }], - })); + }, { shadow: true })); this.update({ originThreadAttachments: [['insert-and-replace', attachmentsData.map(data => @@ -736,12 +736,12 @@ function factory(dependencies) { model: this.model, method: 'read', args: [this.id, ['activity_ids']] - })); + }, { shadow: true })); const activitiesData = await this.async(() => this.env.services.rpc({ model: 'mail.activity', method: 'activity_format', args: [newActivityIds] - })); + }, { shadow: true })); const activities = this.env.models['mail.activity'].insert(activitiesData.map( activityData => this.env.models['mail.activity'].convertData(activityData) )); @@ -762,7 +762,7 @@ function factory(dependencies) { res_id: this.id, res_model: this.model, }, - })); + }, { shadow: true })); if (followers.length > 0) { this.update({ followers: [['insert-and-replace', followers.map(data => -- cgit v1.2.3