From 1803571bdb3545df527ade6dacca8809a5209f73 Mon Sep 17 00:00:00 2001 From: Demaret Rivarola Johan Date: Mon, 24 Sep 2018 14:54:26 +0200 Subject: [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 --- addons/payment/static/src/js/payment_processing.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addons/payment/static/src/js/payment_processing.js') 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); } }); -- cgit v1.2.3