website_membership_signup_required: accept terms & conditions in signup form. Redirect to cart

This commit is contained in:
Luis 2026-07-22 17:42:28 +02:00
parent 07b0e546c4
commit ba52c72b78
6 changed files with 151 additions and 22 deletions

View file

@ -21,4 +21,20 @@
</xpath>
</template>
<template id="auth_signup_terms_checkbox" name="Auth Signup legal terms checkbox"
inherit_id="auth_signup.signup">
<xpath expr="//div[hasclass('oe_login_buttons')]" position="before">
<div class="mb-3 field-accepted_terms">
<div class="form-check">
<input type="checkbox" name="accepted_terms" id="accepted_terms"
value="accepted" class="form-check-input"
required="required"/>
<label for="accepted_terms" class="form-check-label">
I agree to the <a href="/terms" target="_blank">terms &amp; conditions</a>
</label>
</div>
</div>
</xpath>
</template>
</odoo>