[FIX] payment: Manage your payment methods on website

The link "Manage your payment methods" didn't work on the website because
the variable acquirers is a list of records.

This list has been created in function "payment_method" with the route
'/my/payment_method'

opw:1913299

closes odoo/odoo#29142
This commit is contained in:
Goffin Simon
2018-11-29 16:14:04 +00:00
parent c2e3d3a779
commit 484d335789
+1 -1
View File
@@ -137,7 +137,7 @@
<i class="fa fa-lock"> Pay</i>
</t>
</button>
<button t-if="mode == 'manage' and acquirers.filtered(lambda x: x.payment_flow == 's2s')" id="o_payment_form_add_pm" class="btn btn-primary btn-lg mb8 mt8">
<button t-if="mode == 'manage' and list(filter(lambda x: x.payment_flow == 's2s', acquirers))" id="o_payment_form_add_pm" class="btn btn-primary btn-lg mb8 mt8">
<i class="fa fa-plus-circle"> Add new card</i>
</button>
</div>