diff --git a/addons/website_rating/static/src/js/website_mail.js b/addons/website_rating/static/src/js/website_mail.js index 15b9b4ce503..4faa0fbb306 100644 --- a/addons/website_rating/static/src/js/website_mail.js +++ b/addons/website_rating/static/src/js/website_mail.js @@ -332,7 +332,7 @@ var RatingPopupComposer = publicWidget.Widget.extend({ this._composer = new PortalComposer(this, this.options); defs.push(this._composer.replace(this.$('.o_portal_chatter_composer'))); - return $.when.apply($, defs); + return Promise.all(defs); }, }); @@ -344,10 +344,10 @@ publicWidget.registry.RatingPopupComposer = publicWidget.Widget.extend({ */ start: function () { var ratingPopup = new RatingPopupComposer(this, this.$el.data()); - return $.when( + return Promise.all([ this._super.apply(this, arguments), ratingPopup.appendTo(this.$el) - ); + ]); }, }); });