Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2159 Weergaven

Hi,

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

Regards,

Avatar
Annuleer
Beste antwoord

Hi,

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

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

Thanks

Avatar
Annuleer
Auteur

Thanks i throught that's this work just with boolean