跳至內容
選單
此問題已被標幟
1 回覆
2141 瀏覽次數

Hi,

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

Regards,

頭像
捨棄
最佳答案

Hi,

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

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

Thanks

頭像
捨棄
作者

Thanks i throught that's this work just with boolean