Odoo Help

Welcome!

This community 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.

0

Can I use function field in attrs?

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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