Skip to content
Snippets Groups Projects
Commit 09dbbd77 authored by Damien Bouvy's avatar Damien Bouvy
Browse files

[FIX] sale: set and propagate payment type in payment flow


The payment.transaction type field allows filtering some potential
payment methods down the line of a transaction being created; e.g. if a
subscription product is present in a quote, the payment's type should be
`form_save` to save the payment token for future use on the subscription
that will be created at confirmation.

The transaction that got created by sale flows did not set the type of
the transaction correctly, and this value was not propagated to the
rendering values of the acquirer. It now is.

This is necessary as part of task 2275051, where we need to know which
payment methods to enable in Stripe depending on a need for tokenization
or not (since some methods are not tokenizable).

closes odoo/odoo#52855

Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
parent 1b7da6d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment