Odoo Help


Can I use function field in attrs?

willie ho
on 4/22/15, 5:02 AM 648 views

I want to use attrs to make a field invisible when the value is not the thing I want

attrs="{'invisible':[('value', 'not in', ['test1', 'test2'])]}"

value is a function field that get value from other table. I can show the value by using <field name="value"/> but when I use it as attrs, it makes error

Uncaught Error: Unknown field value in domain [["value","not in",['test1', 'test2']]]

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/22/15, 5:02 AM
Seen: 648 times
Last updated: 4/22/15, 5:02 AM