I am only selling under a B2B model and I want everyone to tell me their tax number.
On this page:
/shop/address?address_type=billing
and
/shop/address
I want to make the Tax ID field mandatory, like Email and Phone.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am only selling under a B2B model and I want everyone to tell me their tax number.
On this page:
/shop/address?address_type=billing
and
/shop/address
I want to make the Tax ID field mandatory, like Email and Phone.
Create an Inherited View that modifies the Address Details View:

<data>
<label for="o_vat" position="replace">
<label class="col-form-label fw-normal label-optional" for="o_vat">
<t t-out="vat_label"/> *
</label>
</label>
<input id="o_vat" position="attributes">
<attribute name="required">required</attribute>
</input>
</data>
The two changes here are (1) adding the star after the label and (2) adding the required attribute
Result:

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
11
nov 17
|
27965 | |||
|
1
mar 24
|
4738 | |||
|
1
oct 23
|
8583 | |||
|
3
sept 25
|
2521 | |||
|
Login Website
Resuelto
|
3
oct 25
|
149265 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.