Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2154 Visualizações

Hi,

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

Regards,

Avatar
Cancelar
Melhor resposta

Hi,

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

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

Thanks

Avatar
Cancelar
Autor

Thanks i throught that's this work just with boolean