[FIX] payment: flag the SEPA Direct Debit payment method as tokenizable

The payment method's `support_tokenization` field was incorrectly set to
`False` instead to `True`. This didn't prevent the SEPA Direct Debit
provider from tokenizing this payment method because it always creates
tokens when a payment transaction is confirmed. However, the payment
method was not shown in payment contexts where tokenization is required
(e.g., Subscriptions' portal page, /my/payment_method page).

opw-3756773

closes odoo/odoo#161561

Related: odoo/enterprise#60562
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv)
2024-04-16 14:12:48 +00:00
parent 3f8dacd26c
commit c9bba0df5a
+1 -1
View File
@@ -2864,7 +2864,7 @@
<field name="sequence">1000</field>
<field name="active">False</field>
<field name="image" type="base64" file="payment/static/img/sepa.png"/>
<field name="support_tokenization">False</field>
<field name="support_tokenization">True</field>
<field name="support_express_checkout">False</field>
<field name="support_refund">partial</field>
<field name="supported_country_ids"