Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2196 มุมมอง

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