Please sign in to comment.
[FIX] account_payment: success url
- Activate online payment of invoices - Activate and configure Stripe - Create an invoice, access it through the portal - Pay it with Stripe The user is redirected to `/my` instead of `/my/invoices/<id>`. The root cause is because Stripe creates 2 transactions, the second being created at: https://github.com/odoo/odoo/blob/43295c2a3741fb98f9c5d1a506652442efed0a82/addons/payment_stripe/static/src/js/stripe.js#L108 This second transaction, which is used to record the payment, doesn't contain the appropriate `success_url`. The best fix would probably be to either: - prevent the creation of the second transaction by refactoring `stripe.js` - pass the appropriate `success_url` to the `stripe_form` template - reuse existing draft transactions instead of creating a new one None of these solutions is really suitable for stable since it might require some heavy modification. However, a simple workaround is to change the fallback `success_url`since we have all the necessary information to build it. opw-1997283
- Loading branch information...
Showing with 9 additions and 3 deletions.