Skip to content
Snippets Groups Projects
Commit 45267673 authored by Damien Bouvy's avatar Damien Bouvy
Browse files

[FIX] payment: authorized payment should redirect automatically


From the PoV of the customer, there is no difference between an
authorized payment and a captured payment; they should get redirected to
the confirmation page in both cases.

closes odoo/odoo#42753

Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
parent a310f39e
No related branches found
No related tags found
No related merge requests found
......@@ -103,8 +103,8 @@ odoo.define('payment.processing', function (require) {
return nbTx;
}
// if there's only one tx to manage
if(countTxInState(['tx_done', 'tx_error', 'tx_pending']) === 1) {
var tx = render_values['tx_done'][0] || render_values['tx_error'][0];
if(countTxInState(['tx_done', 'tx_error', 'tx_pending', 'tx_authorized']) === 1) {
var tx = render_values['tx_done'][0] || render_values['tx_authorized'][0] || render_values['tx_error'][0];
if (tx) {
window.location = tx.return_url;
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment