Hi everyone,
I tried this post tips here https://accounts.openerp.com/forum/Help-1/question/13042
It works for me as below
<field name="x_is_family_coverage" string="Is Family Coverage?"> </field>
<field name="x_eb_partner_name" attrs="{'invisible':[('x_is_family_coverage', '==', False)]}"> </field>
<field name="x_eb_partner_eb_no" attrs="{'invisible':[('x_is_family_coverage', '==', False)]}"> </field>
But what if when I check the "Is Family Coverage?" checkbox, I also want to make the fields x_eb_partner_name and x_eb_partner_eb_no required/compulsory too? If uncheck the "Is Family Coverage?" checkbox, then both fields are not required.
Any idea? Thanks.