Odoo Help

0

Can I use function field in attrs?

By
willie ho
on 4/22/15, 5:02 AM 476 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.

Register

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)

Stats

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