Anh Thao Pham (pta)
80dcf62086
[FIX] account_payment: fix failed payment transaction from invoice
...
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 >
2023-10-31 20:54:05 +00:00
..
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 09:00:56 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:25 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 20:54:05 +00:00
2023-10-31 14:41:00 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-31 13:26:38 +00:00
2023-10-30 09:00:56 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 09:00:56 +00:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-30 16:41:49 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 06:35:06 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 09:00:56 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-26 13:41:03 +00:00
2023-10-06 14:33:43 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 10:33:54 +00:00
2023-10-29 00:07:17 +02:00
2023-10-24 13:55:23 +00:00
2023-10-06 13:08:51 +00:00
2023-10-25 19:37:35 +00:00
2023-10-26 12:10:11 +00:00
2023-10-26 08:45:57 +00:00
2023-10-20 19:12:40 +00:00
2023-10-11 08:18:49 +00:00
2023-10-06 13:08:51 +00:00
2023-10-27 14:21:59 +00:00
2023-10-27 14:21:59 +00:00
2023-10-03 19:19:58 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 20:07:19 +00:00
2023-10-16 13:11:10 +00:00
2023-10-18 15:26:31 +00:00
2023-10-03 19:19:58 +00:00
2023-10-16 09:21:11 +00:00
2023-10-23 20:07:34 +00:00
2023-10-23 20:07:34 +00:00
2023-10-23 20:07:34 +00:00
2023-10-23 20:07:34 +00:00
2023-10-06 13:08:51 +00:00
2023-10-24 13:55:23 +00:00
2023-10-06 13:08:51 +00:00
2023-10-23 16:45:09 +00:00
2023-10-06 13:08:51 +00:00
2023-10-30 09:00:56 +00:00
2023-10-20 19:12:44 +00:00
2023-10-31 15:54:25 +00:00
2023-10-20 19:12:44 +00:00
2023-10-11 08:18:49 +00:00
2023-10-25 18:11:01 +00:00
2023-10-06 13:08:51 +00:00
2023-10-20 19:12:40 +00:00
2023-10-06 13:08:51 +00:00
2023-10-23 16:45:09 +00:00
2023-10-25 11:37:23 +00:00
2023-10-24 12:38:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-18 15:26:31 +00:00
2023-10-06 13:08:51 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-25 20:56:15 +00:00
2023-10-11 08:18:49 +00:00
2023-10-06 13:08:51 +00:00
2023-10-23 16:45:09 +00:00
2023-10-02 11:42:56 +00:00
2023-10-23 16:45:09 +00:00
2023-10-30 12:05:23 +00:00
2023-10-26 07:22:56 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-20 23:37:38 +00:00
2023-10-31 15:54:25 +00:00
2023-10-20 23:37:38 +00:00
2023-10-25 18:10:54 +00:00
2023-10-06 13:08:51 +00:00
2023-10-06 13:08:51 +00:00
2023-10-30 09:00:56 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-24 12:38:15 +00:00
2023-10-11 08:18:49 +00:00
2023-10-06 13:08:51 +00:00
2023-10-12 09:49:42 +00:00
2023-10-20 19:12:47 +00:00
2023-10-11 08:18:49 +00:00
2023-10-06 13:08:51 +00:00
2023-10-06 13:08:51 +00:00
2023-10-06 13:08:51 +00:00
2023-10-21 02:22:48 +00:00
2023-10-11 08:18:49 +00:00
2023-10-30 16:41:37 +00:00
2023-10-06 13:08:51 +00:00
2023-10-06 13:08:51 +00:00
2023-10-24 13:55:23 +00:00
2023-10-11 08:18:49 +00:00
2023-10-06 13:08:51 +00:00
2023-10-31 15:54:29 +00:00
2023-10-19 19:08:15 +00:00
2023-10-23 16:45:09 +00:00
2023-10-06 13:08:51 +00:00
2023-10-11 08:18:49 +00:00
2023-10-03 19:19:58 +00:00
2023-10-06 13:08:51 +00:00
2023-10-06 13:08:51 +00:00
2023-10-10 17:26:34 +00:00
2023-10-06 13:08:51 +00:00
2023-10-06 13:08:51 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:33 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 10:34:00 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-31 15:54:32 +00:00
2023-10-30 12:05:28 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 17:48:46 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 16:59:14 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-30 12:05:23 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-27 14:22:08 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 14:40:57 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-30 09:00:56 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 12:05:25 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 07:11:45 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 10:33:57 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 16:59:15 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-27 23:44:52 +00:00
2023-10-06 14:33:43 +00:00
2023-10-25 11:37:17 +00:00
2023-10-31 13:26:38 +00:00
2023-10-18 13:39:06 +00:00
2023-10-30 07:37:12 +00:00
2023-10-26 13:41:16 +00:00
2023-10-24 19:24:50 +00:00
2023-10-24 19:24:50 +00:00
2023-10-24 12:38:09 +00:00
2023-10-27 21:36:46 +00:00
2023-10-30 17:48:42 +00:00
2023-10-06 14:33:38 +00:00
2023-10-14 03:27:03 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-31 15:54:32 +00:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 13:26:38 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-27 08:36:16 +00:00
2023-10-31 13:26:38 +00:00
2023-10-29 00:07:17 +02:00
2023-10-30 12:05:31 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 10:33:56 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 16:41:52 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00