diff options
| author | Thibault Delavallée <tde@odoo.com> | 2017-08-30 16:15:18 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2017-08-31 10:20:51 +0200 |
| commit | dae6178a0a5629ce678b20fcc9226caa44a5b0ce (patch) | |
| tree | 9235308c441fc134015fcf1d4b5e44274ac43954 /addons/payment/static | |
| parent | 88ea39de8ae600ae77bba90977b6902c1a060ad4 (diff) | |
[FIX] payment: fix issue about required fields in payment form
It seems like even a correctly-filled field triggers an empty input
error because variable about empty error is always True.
Diffstat (limited to 'addons/payment/static')
| -rw-r--r-- | addons/payment/static/src/js/payment_form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js index 491cafcf00c..f95fd50f9fe 100644 --- a/addons/payment/static/src/js/payment_form.js +++ b/addons/payment/static/src/js/payment_form.js @@ -41,11 +41,11 @@ odoo.define('payment.payment_form', function (require){ if(element.dataset.isRequired) { if (element.value.length === 0) { $(element).closest('div.form-group').addClass('has-error'); + empty_inputs = true; } else { $(element).closest('div.form-group').removeClass('has-error'); } - empty_inputs = true; } }); |
