80dcf62086fc6b48bfbb7ac617f1c76f9c901eea
Steps to reproduce: - Configure a payment provider (e.g. Stripe) - Go to the portal account of an user (e.g. Marc Demo) - Click on "Manage payment methods" - Save a payment method to create a payment token - /!\ Go back to payment provider configuration and make a typo in the credentials (This will be needed later to trigger a payment transaction error) - Go to Accounting and create an invoice for Marc Demo - Confirm the invoice - Register payment: * Payment Method: Stripe * Saved payment token: [payment token of Marc Demo] - Create payment [1st issue] The payment transaction fails (as the credentials are incorrect), but no information about it appears on the invoice. [2nd issue] It is not possible to register another payment (with the payment provider) because there is an unique constraint on the reference field of "payment.transaction" model and each attempt of registering a payment uses the same reference. Solution: [1st issue] Link invoice to payment transaction. Messages related to payment transaction will be logged on the invoice automatically. [2nd issue] Generate reference with "_compute_reference" method instead of always using the same one. opw-3499200 closes odoo/odoo#140533 X-original-commit: 8c98efe036972c43a95c28509e91c356ddc84084 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Anh Thao Pham (pta) <pta@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%