From 291e99b7f7db36f650565874e3d5ee04d874a0db Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Fri, 2 Sep 2022 05:02:13 +0000 Subject: [PATCH] [FIX] mail: prevents traceback when downloading rtc call logs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/mail/static/src/models/call_option_menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/models/call_option_menu.js b/addons/mail/static/src/models/call_option_menu.js index 63db7a95125..78684c1c82e 100644 --- a/addons/mail/static/src/models/call_option_menu.js +++ b/addons/mail/static/src/models/call_option_menu.js @@ -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; }