4a636582a4a044d5bd8ac1cc286ccf4b5cda80ea
Steps to reproduce: A) Share a payment link and pay with PayU Latam (you'll be redirected to their checkout page) B) Make sure that your first payment attempt with Pay U Latam fails (they provide the cards info to simulate successful and failed payments) C) After the first failed attempt, stay on the same checkout page and do a second attempt (this time a successful attempt) D) Click on 'Go back to the website of the shop' (still on the checkout page). Current behavior: Odoo will show 'Your payment has been canceled' Expected behvavior: Odoo will show 'Your payment has been confirmed' Explanation: After the first payment failure payulatam calls the webhook to cancel the transaction but after it lets the user the possibilty to retry the same payment again and if the payment succeed it calls the webhook again to confirm the transaction but it can not as the transaction is already in a canceled state. To prevent this issue we allow the payulatam webhook to set the transaction from canceled to done by adding canceled in the allowed states of _set_done() opw-2994527 closes odoo/odoo#103066 X-original-commit: 162b4a4fb958b8568a2d99625934b9b4f4dfa103 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%