[IMP] mail: remove owl bus on/off

These are deprecated since Owl 2, and lead to memory leak in the
compatibility layer. This PR removes the last ones in the mail code.

task-2877316

closes odoo/odoo#103301

Related: odoo/enterprise#32842
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
tsm-odoo
2022-10-18 13:17:11 +02:00
parent 62526a3546
commit f9e7a34ef7
@@ -3361,7 +3361,7 @@ QUnit.test('receive new chat message: out of odoo focus (notification, channel)'
},
});
await openDiscuss();
env.bus.on('set_title_part', null, payload => {
env.bus.addEventListener('set_title_part', ({ detail: payload }) => {
assert.step('set_title_part');
assert.strictEqual(payload.part, '_chat');
assert.strictEqual(payload.title, "1 Message");
@@ -3393,7 +3393,7 @@ QUnit.test('receive new chat message: out of odoo focus (notification, chat)', a
},
});
await openDiscuss();
env.bus.on('set_title_part', null, payload => {
env.bus.addEventListener('set_title_part', ({ detail: payload }) => {
assert.step('set_title_part');
assert.strictEqual(payload.part, '_chat');
assert.strictEqual(payload.title, "1 Message");
@@ -3429,7 +3429,7 @@ QUnit.test('receive new chat messages: out of odoo focus (tab title)', async fun
},
});
await openDiscuss();
env.bus.on('set_title_part', null, payload => {
env.bus.addEventListener('set_title_part', ({ detail: payload }) => {
step++;
assert.step('set_title_part');
assert.strictEqual(payload.part, '_chat');