[FIX] mail: backport fix from the required field PR

https://github.com/odoo/enterprise/pull/13883
task-2323665

closes odoo/odoo#61320

X-original-commit: 7ead0bf2e3e15ec161415bfa270a2c42a66fbbe3
Related: odoo/enterprise#14585
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Didier (did)
2020-11-04 12:12:49 +00:00
parent 5f9c2bdfea
commit 1da252d0a3
3 changed files with 6 additions and 1 deletions
@@ -50,6 +50,7 @@ QUnit.test('channel mention suggestion displayed', async function (assert) {
const channel = this.env.models['mail.thread'].create({
id: 7,
name: "General",
model: 'mail.channel',
});
await this.createComposerSuggestion({
composerLocalId: thread.composer.localId,
@@ -77,6 +78,7 @@ QUnit.test('channel mention suggestion correct data', async function (assert) {
const channel = this.env.models['mail.thread'].create({
id: 7,
name: "General",
model: 'mail.channel',
});
await this.createComposerSuggestion({
composerLocalId: thread.composer.localId,
@@ -114,6 +116,7 @@ QUnit.test('partner mention suggestion active', async function (assert) {
const channel = this.env.models['mail.thread'].create({
id: 7,
name: "General",
model: 'mail.channel',
});
await this.createComposerSuggestion({
composerLocalId: thread.composer.localId,
@@ -986,7 +986,7 @@ QUnit.test('as moderator, new pending moderation message posted by someone else'
// simulate receiving the message
const messageData = {
author_id: 10, // random id, different than current partner
author_id: [10, 'john doe'], // random id, different than current partner
body: "not empty",
channel_ids: [], // server do NOT return channel_id of the message if pending moderation
id: 1, // random unique id
@@ -55,6 +55,7 @@ QUnit.test('grant course access', async function (assert) {
},
});
const activity = this.env.models['mail.activity'].create({
id: 100,
canWrite: true,
thread: [['insert', {
id: 100,
@@ -94,6 +95,7 @@ QUnit.test('refuse course access', async function (assert) {
},
});
const activity = this.env.models['mail.activity'].create({
id: 100,
canWrite: true,
thread: [['insert', {
id: 100,