[FIX] payment_stripe: incorrect route
The route should contain the SO id, not the acquier id.
This commit is contained in:
committed by
Nicolas Martinelli
parent
ecfcaea080
commit
4df087b24d
@@ -121,8 +121,7 @@ odoo.define('payment_stripe.stripe', function(require) {
|
||||
try { provider_form[0].innerHTML = data; } catch (e) {};
|
||||
});
|
||||
} else if (window.location.href.includes("/my/orders/")) {
|
||||
var create_tx = ajax.jsonRpc('/pay/sale/' + acquirer_id + '/form_tx/', 'call', {
|
||||
so_id: so_id,
|
||||
var create_tx = ajax.jsonRpc('/pay/sale/' + so_id + '/form_tx/', 'call', {
|
||||
access_token: access_token,
|
||||
acquirer_id: acquirer_id
|
||||
}).then(function (data) {
|
||||
|
||||
Reference in New Issue
Block a user