[FIX] payment: Do not display add card button if no s2s acquirer

> - On the route /my/payment_method if there's no s2s acquirers you cannot add a new card, so we hide the button if no s2s acquirers found.
This commit is contained in:
tbe-odoo
2017-12-18 14:36:17 +01:00
parent 8a96885153
commit 2eb0180021
+1 -1
View File
@@ -147,7 +147,7 @@
<i class="fa fa-lock"> Pay</i>
</t>
</button>
<button t-if="mode == 'manage'" id="o_payment_form_add_pm" class="btn btn-primary btn-lg mb8 mt8">
<button t-if="mode == 'manage' and 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>