Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2149 Visualizzazioni

Hi,

Please how to make a required field only if another field is filled in odoo 10,

Regards,

Avatar
Abbandona
Risposta migliore

Hi,

You can add a attribute for the field in XML like this,

attrs="{'required': [('field_name', '!=', False)]}"

Thanks

Avatar
Abbandona
Autore

Thanks i throught that's this work just with boolean