Odoo error : the "attrs" and "states" attributes are no longer used.
Jeevachaithanyan Sivanandan
Posted on January 17, 2024
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'" />
💖 💪 🙅 🚩
Jeevachaithanyan Sivanandan
Posted on January 17, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
webdev Understanding HTTP, Cookies, Email Protocols, and DNS: A Guide to Key Internet Technologies
November 30, 2024
softwareengineering Git Mastery: Essential Questions and Answers for Developers 🚀
November 30, 2024