[FIX] website_sale: Fix terms & conditions
- Fixed accept terms & conditions button when paying on e-commerce.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1368,7 +1368,7 @@
|
||||
</template>
|
||||
|
||||
<template id="payment_sale_note" inherit_id="payment" name="Accept Terms & 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" />
|
||||
|
||||
Reference in New Issue
Block a user