summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-09-19 11:06:46 +0200
committerChristophe Simonis <chs@odoo.com>2017-09-19 11:06:46 +0200
commit2a343d7c9c4b07bb6cf4c7c4197bb795a3d17f4b (patch)
tree6b16c1bee8b6feb9ad3ac34e6a310d2c7e6264ba /addons/mail/static/src
parent97138a1eaeca76ebf297490604268dadbfa43f97 (diff)
parentc3a48da767b333d21ceff2cb829ffba102d6ff3d (diff)
[MERGE] forward port branch saas-16 up to c3a48da767b
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/client_action.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/client_action.js b/addons/mail/static/src/js/client_action.js
index a3cbc75a949..866d431bd67 100644
--- a/addons/mail/static/src/js/client_action.js
+++ b/addons/mail/static/src/js/client_action.js
@@ -673,7 +673,9 @@ var ChatAction = Widget.extend(ControlPanelMixin, {
});
},
destroy: function() {
- this.$buttons.off().destroy();
+ if (this.$buttons) {
+ this.$buttons.off().destroy();
+ }
this._super.apply(this, arguments);
},