Hey Cyllo community! Is there a way to dynamically show/hide fields without using the `attrs` attribute, since i know attrs is no longer used? Looking for a cleaner, maybe more efficient alternative. Thanks!
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
1
Reply
16
Views
Here's how you can achieve the functionality using the updated method in Odoo 17. This avoids the deprecated 'attrs' dictionary and uses inline expressions for cleaner code.
product.category.view.form
product.category
readonly= “'state' == 'done’”
required'= “'type' == 'special'"
string="Category Name"/>