From 770e32eeb2af58a14f4523dd22542bd4953068f2 Mon Sep 17 00:00:00 2001 From: Mattis Megevand Date: Thu, 18 Apr 2024 14:54:17 +0200 Subject: [PATCH] [FIX] portal_rating: catch error when no message submitted Steps to reproduce: - Install e-Commerce - Go to your portal into a quotation - Go to the chatter and send an empty message Issues: A traceback is shown Solution: Catch the error and discard it as the parent method is already displaying the error message to the user. opw-3877096 closes odoo/odoo#162424 Signed-off-by: Mattis Megevand (mmeg) --- addons/portal_rating/static/src/js/portal_composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_rating/static/src/js/portal_composer.js b/addons/portal_rating/static/src/js/portal_composer.js index 06c289110bc..8ffbad17dde 100644 --- a/addons/portal_rating/static/src/js/portal_composer.js +++ b/addons/portal_rating/static/src/js/portal_composer.js @@ -149,7 +149,7 @@ PortalComposer.include({ this.trigger_up('reload_rating_popup_composer', result); }); $modal.modal('hide'); - }); + }, () => {}); }, /**