[FIX] website_sale: Fix terms & conditions

- Fixed accept terms & conditions button when paying on e-commerce.
This commit is contained in:
tbe-odoo
2017-09-04 14:53:54 +02:00
parent e986f0986e
commit f65d13fc94
2 changed files with 2 additions and 2 deletions
@@ -5,7 +5,7 @@ $(document).ready(function () {
// If option is enable
if ($("#checkbox_cgv").length) {
$("#checkbox_cgv").click(function() {
$("div.o_payment_acquirer_button").find('input, button').prop("disabled", !this.checked);
$("button#o_payment_form_pay").prop("disabled", !this.checked);
});
}
});
+1 -1
View File
@@ -1368,7 +1368,7 @@
</template>
<template id="payment_sale_note" inherit_id="payment" name="Accept Terms &amp; Conditions" customize_show="True" active="False">
<xpath expr="//t[@id='acquirers_list']" position="before">
<xpath expr="//div[@id='payment_method']" position="before">
<div class="oe_accept_cgv_button">
<label>
<input type="checkbox" checked="checked" id="checkbox_cgv" />