diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2021-04-09 13:38:43 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2021-04-09 15:14:10 +0000 |
| commit | 3f790e0482bb7e0a36f65aece18249306da39067 (patch) | |
| tree | a370c3001dc322833fec6b42ccd92ecf1ffdd816 /addons | |
| parent | 2cc976fd611de8945c98447fa2d23821f14d55de (diff) | |
[FIX] payment: fix ecommerce blinking "Pay now" button
Missing line in forward-port of 12.0 #41860 (88b37c2b1).
If a server error happen when we try to pay (eg. there is not enoug
quantity of a product), the page is forever freezed and the user only
option is to refresh which is not user friendly.
opw-2438379
closes odoo/odoo#69062
X-original-commit: 38fb1c2e3f4dd48fc177b1b2b37a2eba4bd27018
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/payment/static/src/js/payment_form.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js index dfda9488ad4..cee7bf982ef 100644 --- a/addons/payment/static/src/js/payment_form.js +++ b/addons/payment/static/src/js/payment_form.js @@ -317,6 +317,7 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({ _t("We are not able to redirect you to the payment form.") + " " + self._parseError(error) ); + self.enableButton(button); }); } else { |
