[FIX] mail: prevents traceback when downloading rtc call logs

Before this commit, since https://github.com/odoo/odoo/pull/96954 ,
the `CallActionListView` had its `channel` field renamed into `thread`.

A reference to this old field name was missed which caused the
traceback, this commit fixes this issue by using the right field name.

closes odoo/odoo#99447

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Thanh Dodeur
2022-09-02 12:21:41 +02:00
parent f4a8d5bf9b
commit 291e99b7f7
@@ -12,7 +12,7 @@ registerModel({
* @param {MouseEvent} ev
*/
async onClickDownloadLogs(ev) {
const channel = this.callActionListView.channel;
const channel = this.callActionListView.thread;
if (!channel.rtc) {
return;
}