summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread/thread.js
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-10-13 12:19:25 +0000
committerThanh Dodeur <tso@odoo.com>2020-10-14 12:26:38 +0000
commit4274a061ff1498f647580c38c7048da8a8cb0a9c (patch)
tree71fd23ea52c6ea7124917e28859886cb6af55f0a /addons/mail/static/src/models/thread/thread.js
parent3d9e2e031ea2e92a50769cc69fe37741d32b6820 (diff)
[FIX] mail: adds shadow to RPCs
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) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread/thread.js')
-rw-r--r--addons/mail/static/src/models/thread/thread.js12
1 files changed, 6 insertions, 6 deletions
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 =>