-
- Downloads
[FIX] payment: fix payment processing payment_redirect
Steps to reproduce: - create and send a quotation - make a failed payment (through cutomer preview) - create and send a second quotation to the same customer - make a succesful payment this time - redirect takes to the wrong quotation (failed one) Bug: polling the processed payments initially returns both transaction but the following polls only returns the rejected payment (introduced in [1] processed transactions are filtered out) since there's only a single transaction, redirect takes to it Fix: if there's only a single succesful transaction (regardless of the rest) it means the current payment was successfull so we redirect to it opw-2954162 [1]:https://github.com/odoo/odoo/pull/31741/commits/7612659565ee24f1c878b81e6c86b5780fbd5a3d closes odoo/odoo#99969 Signed-off-by:Antoine Vandevenne (anv) <anv@odoo.com>
Please register or sign in to comment