Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2152 Lượt xem

Hi,

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

Regards,

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

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

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

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks i throught that's this work just with boolean