summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortbe-odoo <tbe@odoo.com>2017-12-18 12:49:21 +0100
committertbe-odoo <tbe@odoo.com>2017-12-18 14:36:17 +0100
commit2eb018002139a1061aef73cad005d89f47b9f9d7 (patch)
tree5c0582fc29f5ef9fae8680a345f9b356e706f641
parent8a96885153b792c720f88a0d8f622e03aaa59804 (diff)
[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.
-rw-r--r--addons/payment/views/payment_templates.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment/views/payment_templates.xml b/addons/payment/views/payment_templates.xml
index c601d945261..772c970dc52 100644
--- a/addons/payment/views/payment_templates.xml
+++ b/addons/payment/views/payment_templates.xml
@@ -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>