I tried doing this:
<field name="allergy_verification" attrs="{'required': [('allergy_ids', '!=', [])]}" />
However if allergy_ids is blank, then allergy_verification is still marked as required. What am I doing wrong?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I tried doing this:
<field name="allergy_verification" attrs="{'required': [('allergy_ids', '!=', [])]}" />
However if allergy_ids is blank, then allergy_verification is still marked as required. What am I doing wrong?
See https://github.com/odoo/odoo/issues/674
<field name="allergy_verification" attrs="{'required': [('allergy_ids', '!=', [[6, False, []]])]}" />
Cool beans, thanks.
Try the code:-
<field name="allergy_verification" attrs="{'required': [('allergy_ids', '!=', False)]}" />