diff options
| author | Demaret Rivarola Johan <jde@odoo.com> | 2018-09-24 14:54:26 +0200 |
|---|---|---|
| committer | Toufik Benjaa <tbe@odoo.com> | 2018-09-26 14:50:17 +0200 |
| commit | 1803571bdb3545df527ade6dacca8809a5209f73 (patch) | |
| tree | a98409fcc2e868f666672f43321c2c07b24cc027 /addons/payment/static/src/js/payment_processing.js | |
| parent | 2f2b5ead7c4eff8fef6eaf1f62662f73d45eda89 (diff) | |
[FIX] payment: always redirect when using wire transfer
The user should always be redirected when paying with wire transfer.
This is because the landing page displays useful data such as the communication.
Closes #27194
Diffstat (limited to 'addons/payment/static/src/js/payment_processing.js')
| -rw-r--r-- | addons/payment/static/src/js/payment_processing.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/payment/static/src/js/payment_processing.js b/addons/payment/static/src/js/payment_processing.js index 196e694399e..3497297d665 100644 --- a/addons/payment/static/src/js/payment_processing.js +++ b/addons/payment/static/src/js/payment_processing.js @@ -85,6 +85,10 @@ odoo.define('payment.processing', function (require) { transactions.forEach(function (tx) { var key = 'tx_' + tx.state; if(key in render_values) { + if (tx.acquirer_provider === 'transfer') { + window.location = tx.return_url; + return; + } render_values[key].push(tx); } }); |
