summaryrefslogtreecommitdiff
path: root/addons/payment/static/src/js/payment_processing.js
diff options
context:
space:
mode:
authorDemaret Rivarola Johan <jde@odoo.com>2018-09-24 14:54:26 +0200
committerToufik Benjaa <tbe@odoo.com>2018-09-26 14:50:17 +0200
commit1803571bdb3545df527ade6dacca8809a5209f73 (patch)
treea98409fcc2e868f666672f43321c2c07b24cc027 /addons/payment/static/src/js/payment_processing.js
parent2f2b5ead7c4eff8fef6eaf1f62662f73d45eda89 (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.js4
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);
}
});