Skip to content
Snippets Groups Projects
Commit d97f8f57 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website_payment: don't add link manage payment if no provider

Before this fix, the link was always present, even if no acquirer payment was configurated to allow tokenization.
parent 768df3a9
Branches
Tags
No related merge requests found
......@@ -80,9 +80,11 @@
</t>
</template>
<template id="pay_meth_link" inherit_id="website_portal.portal_layout">
<template id="pay_meth_link" inherit_id="website_portal.portal_layout" customize_show="True">
<xpath expr="//div[@class='o_my_details']" position="inside">
<div class='manage_payment_method mt16'><a href="/my/payment_method">Manage your payment methods</a></div>
<t t-if="request.env['payment.acquirer'].search([('website_published', '=', True), ('registration_view_template_id', '!=', False)])">
<div class='manage_payment_method mt16'><a href="/my/payment_method">Manage your payment methods</a></div>
</t>
</xpath>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment