diff --git a/addons/web/static/src/js/widgets/notification.js b/addons/web/static/src/js/widgets/notification.js index 314034ef748..e6d26265161 100644 --- a/addons/web/static/src/js/widgets/notification.js +++ b/addons/web/static/src/js/widgets/notification.js @@ -54,7 +54,8 @@ var NotificationManager = Widget.extend({ className: 'o_notification_manager', display: function(notification) { - return notification.appendTo(this.$el); + notification.appendTo(this.$el); + return notification; }, notify: function(title, text, sticky) { return this.display(new Notification(this, title, text, sticky));