Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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]:odoo@7612659 closes odoo#100440 X-original-commit: 0420a0b Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
- Loading branch information