[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) <mmeg@odoo.com>
This commit is contained in:
Mattis Megevand
2024-04-25 11:21:48 +00:00
parent 628e980017
commit 770e32eeb2
@@ -149,7 +149,7 @@ PortalComposer.include({
this.trigger_up('reload_rating_popup_composer', result);
});
$modal.modal('hide');
});
}, () => {});
},
/**