Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2153 Tampilan

Hi,

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

Regards,

Avatar
Buang
Jawaban Terbai

Hi,

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

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

Thanks

Avatar
Buang
Penulis

Thanks i throught that's this work just with boolean