diff --git a/mail_move_message/static/src/js/mail_move_message.js b/mail_move_message/static/src/js/mail_move_message.js index 4848813..b596446 100644 --- a/mail_move_message/static/src/js/mail_move_message.js +++ b/mail_move_message/static/src/js/mail_move_message.js @@ -50,7 +50,7 @@ odoo.define("mail_move_message.relocate", function(require) { var result = this._super.apply(this, arguments); // For show wizard in the form if (this.fields.thread && this.fields.thread.thread) { - var thread = this.fields.thread.thread; + thread = this.fields.thread.thread; thread.on("move_message", this, thread.on_move_message); } return $.when(result).done(function() {});