If you get the error
Since 17.0, the "attrs" and "states" attributes are no longer used.
which means you might running Odoo version 17 and there is a change in using attributes in Odoo xml view.
for Odoo 16 or below
<field name="other_address_info" readonly="1"
attrs="{'invisible': [('type', '!=', 'other')]}" />
but in Odoo 17 it as a below
<field name="other_address_info" readonly="1"
invisible = "type == 'other'" />
Top comments (0)