Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2158 Ansichten

Hi,

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

Regards,

Avatar
Verwerfen
Beste Antwort

Hi,

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

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

Thanks

Avatar
Verwerfen
Autor

Thanks i throught that's this work just with boolean