summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorJason Van Malder <jvm@odoo.com>2019-11-28 11:28:00 +0000
committerJason Van Malder <jvm@odoo.com>2019-11-29 06:59:42 +0000
commit22df074e7b1bd68069f6959cd56fb9316f289e7d (patch)
treed43d1ae2e58b9cc0200ff076ecd747df812a4d16 /addons/web/static
parentde5263179518e8097e21383f6e837023edbc1209 (diff)
[FIX] payment_stripe: fix bad request not displaying
Reproduce the issue - Install eCommerce - Activate stripe, use testing credentials and select Configuration > Payment Flow > Payment from Odoo - Create a contact that has a trailing whitespace at the beginning of the email - Grant him portal access, and a password - Open your browser devtools - Login to the web shop with this portal user and buy an item using stripe 1. Error Dialog: Server Error (HTTP 500) 2. The exception received by the front-end is not clear 3. When the 500 error is fixed, we still have a error dialog => bad UX Cause 1. The raise was removed but we need to keep it because it allows the true error to be raised (bad request) 2. The "invalid email address: x" is lost when we raise the exception 3. In V13, all catch & guardedCatch open a error dialog if we don't set preventDefaulted to true on the error's event This commit changes restore the raise, change the error message and disable the error dialog for this case. OPW-2126196 closes odoo/odoo#41087 X-original-commit: b8d013285ba54c8d3ab4a3857604dfca3e479b39 Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com>
Diffstat (limited to 'addons/web/static')
0 files changed, 0 insertions, 0 deletions