İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2145 Görünümler

Hi,

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

Regards,

Avatar
Vazgeç
En İyi Yanıt

Hi,

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

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

Thanks

Avatar
Vazgeç
Üretici

Thanks i throught that's this work just with boolean