add website_membership_signup_required: force to create user before add to cart a membership product

This commit is contained in:
Luis 2026-07-07 10:27:13 +02:00
parent 80f24bcc46
commit c4d32c6add
22 changed files with 1202 additions and 0 deletions

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="auth_signup_fields_firstname_lastname" name="Auth Signup fields (firstname / lastname)" inherit_id="auth_signup.fields">
<xpath expr="//div[hasclass('field-name')]" position="replace">
<div class="mb-3 field-firstname">
<label for="firstname">First name</label>
<input type="text" name="firstname" t-att-value="firstname" id="firstname"
class="form-control form-control-sm" placeholder="e.g. John"
required="required"
t-att-readonly="'readonly' if only_passwords else None"
t-att-autofocus="'autofocus' if login and not only_passwords else None"/>
</div>
<div class="mb-3 field-lastname">
<label for="lastname">Last name</label>
<input type="text" name="lastname" t-att-value="lastname" id="lastname"
class="form-control form-control-sm" placeholder="e.g. Doe"
required="required"
t-att-readonly="'readonly' if only_passwords else None"/>
</div>
</xpath>
</template>
</odoo>